MCPcopy Index your code
hub / github.com/ReLive27/spring-security-oauth2-sample

github.com/ReLive27/spring-security-oauth2-sample @v1.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.1 ↗ · + Follow
968 symbols 1,997 edges 237 files 263 documented · 27%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

video_spider

spring-oauth2-sample | 中文文档

<a href="https://github.com/ReLive27/spring-security-oauth2-sample/stargazers"><img src="https://img.shields.io/github/stars/ReLive27/spring-security-oauth2-sample?style=flat-square&logo=GitHub"></a>
<a href="https://github.com/ReLive27/spring-security-oauth2-sample/network/members"><img src="https://img.shields.io/github/forks/ReLive27/spring-security-oauth2-sample?style=flat-square&logo=GitHub"></a>
<a href="https://github.com/ReLive27/spring-security-oauth2-sample/watchers"><img src="https://img.shields.io/github/watchers/ReLive27/spring-security-oauth2-sample?style=flat-square&logo=GitHub"></a>
<a href="https://github.com/ReLive27/spring-security-oauth2-sample/issues"><img src="https://img.shields.io/github/issues/ReLive27/spring-security-oauth2-sample.svg?style=flat-square&logo=GitHub"></a>
<a href="https://github.com/ReLive27/spring-security-oauth2-sample/blob/main/LICENSE"><img src="https://img.shields.io/github/license/ReLive27/spring-security-oauth2-sample.svg?style=flat-square"></a>

This project is a collection of Spring Authorization Server example tutorials. It builds on top of Spring Security 6, the modules here cover many aspects of Spring Authorization Server.

💡 Note: Don’t forget to give a star🌟 to the project if you like it!

Relevant Articles:

Spring Framework Version

Spring Boot Spring Cloud Spring Authorization Server Spring Security
3.1.5 2022.0.4 1.2.1 6.1.5

Building from Source

spring-oauth2-sample uses a Maven based build system.

Prerequisites

Git and the JDK17 build.

Be sure that your JAVA_HOME environment variable points to the jdk-17.0.5 folder extracted from the JDK download.

Check out sources

git clone git@github.com:ReLive27/spring-security-oauth2-sample.git

Build and Install the Project:

./mvn clean install -Dmaven.test.skip=true

Contributing

Pull requests are welcome.

License

spring-oauth2-sample is Open Source software released under the Apache 2.0 license.

Extension points exported contracts — how you extend this code

KeyIDStrategy (Interface)
kid generation strategy. @author: ReLive @date: 2022/8/23 13:07 @see JWK [4 implementers]
oauth2-jwk-redis/authorization-server/src/main/java/com/relive/jose/KeyIDStrategy.java
OAuth2IntrospectionService (Interface)
@author: ReLive @date: 2022/11/20 21:34 [4 implementers]
oauth2-introspection-with-jwt/resourceserver-introspction-with-jwt/src/main/java/com/relive/introspection/OAuth2IntrospectionService.java
AccessTokenLimiter (Interface)
AccessToken limiter interface @author: ReLive @date: 2022/10/9 20:52 [2 implementers]
oauth2-token-access-restrictions/oauth2-service-with-token-access-restriction/src/main/java/com/relive/token/AccessTokenLimiter.java
KeyIDStrategy (Interface)
@author: ReLive @date: 2022/10/3 22:50 [2 implementers]
oauth2-jwk-consul-config/authorization-server-with-consul/src/main/java/com/relive/jose/KeyIDStrategy.java
DeviceAuthorizationRequestRepository (Interface)
@author: ReLive27 @date: 2024/5/2 09:29 [1 implementers]
device-authorization-flow/device-client/src/main/java/com/relive/oauth2/client/DeviceAuthorizationRequestRepository.java
OAuth2ClientRoleRepository (Interface)
@author: ReLive @date: 2022/7/13 1:01 下午
oidc-login/rp/src/main/java/com/relive/repository/OAuth2ClientRoleRepository.java
OAuth2ClientRoleRepository (Interface)
@author: ReLive @date: 2022/8/02 20:30 下午
gateway-oauth2-login/auth-server/src/main/java/com/relive/repository/OAuth2ClientRoleRepository.java
OpaqueTokenIntrospectorSupport (Interface)
@author: ReLive @date: 2022/11/24 21:03 [2 implementers]
oauth2-introspection-with-jwt/resourceserver-introspction-with-jwt/src/main/java/com/relive/introspection/OpaqueTokenIntrospectorSupport.java

Core symbols most depended-on inside this repo

Shape

Method 698
Class 259
Interface 11

Languages

Java100%

Modules by API surface

oidc-login/rp/src/main/java/com/relive/config/JdbcClientRegistrationRepository.java20 symbols
oauth2-persistence-client/persistence-client/src/main/java/com/relive/config/JdbcClientRegistrationRepository.java20 symbols
oauth2-client-registration/client-registration/src/main/java/com/relive/config/JdbcClientRegistrationRepository.java20 symbols
gateway-oauth2-login/auth-server/src/main/java/com/relive/repository/JdbcClientRegistrationRepository.java20 symbols
oauth2-jwk-redis/authorization-server/src/main/java/com/relive/jose/jwk/source/RedisJWKSetCache.java14 symbols
oauth2-introspection-with-jwt/resourceserver-introspction-with-jwt/src/main/java/com/relive/introspection/JdbcOAuth2IntrospectionService.java14 symbols
oauth2-token-access-restrictions/oauth2-service-with-token-access-restriction/src/main/java/com/relive/config/AuthorizationServerConfig.java13 symbols
oauth2-jwk-redis/authorization-server/src/main/java/com/relive/jose/jwk/source/InMemoryJWKSetCache.java13 symbols
oauth2-introspection-with-jwt/resourceserver-introspction-with-jwt/src/main/java/com/relive/configure/OAuth2IntrospectiveResourceServerAuthorizationConfigurer.java13 symbols
device-authorization-flow/device-authorization-server/src/main/java/com/relive/config/AuthorizationServerConfig.java13 symbols
oauth2-custom-consent-page-with-vue/openid-provider/src/main/java/com/relive/config/AuthorizationServerConfig.java12 symbols
oauth2-pkce/pkce-oauth2-server/src/main/java/com/relive/config/OAuth2ServerConfig.java11 symbols

Datastores touched

(mysql)Database · 1 repos
integrated_oauthDatabase · 1 repos
oauth2_clientDatabase · 1 repos
oauth2_client_registartionDatabase · 1 repos
oauth2serverDatabase · 1 repos
oidc_loginDatabase · 1 repos
persistence_oauth2_clientDatabase · 1 repos
resourceserver-introspectionDatabase · 1 repos

For agents

$ claude mcp add spring-security-oauth2-sample \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page