类 Oauth2Config
java.lang.Object
cn.bbwres.biscuit.security.oauth2.config.Oauth2Config
oauth2 相关配置
- 作者:
- zhanglinfeng
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.springframework.security.web.SecurityFilterChainauthorizationServerSecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.beans.factory.ObjectProvider<List<CustomAuthenticationGrant>> customAuthenticationGrants, CustomLoginUrlAuthenticationEntryPoint customLoginUrlAuthenticationEntryPoint) 安全配置org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettingsAuthorizationServerSettings 配置 配置端点信息customLoginUrlAuthenticationEntryPoint(BiscuitSecurityProperties biscuitSecurityProperties, org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings authorizationServerSettings, org.springframework.beans.factory.ObjectProvider<org.springframework.context.support.MessageSourceAccessor> messageSourceAccessorObjectProvider) 认证失败登录页面配置org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> oauth2TokenGenerator(com.nimbusds.jose.jwk.source.JWKSource<com.nimbusds.jose.proc.SecurityContext> jwkSource, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext> accessTokenCustomizer) OAuth2TokenGenerator 配置
-
构造器详细资料
-
Oauth2Config
public Oauth2Config()
-
-
方法详细资料
-
authorizationServerSettings
@Bean @ConditionalOnMissingBean public org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings authorizationServerSettings()AuthorizationServerSettings 配置 配置端点信息- 返回:
- AuthorizationServerSettings
-
customLoginUrlAuthenticationEntryPoint
@Bean public CustomLoginUrlAuthenticationEntryPoint customLoginUrlAuthenticationEntryPoint(BiscuitSecurityProperties biscuitSecurityProperties, org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings authorizationServerSettings, org.springframework.beans.factory.ObjectProvider<org.springframework.context.support.MessageSourceAccessor> messageSourceAccessorObjectProvider) 认证失败登录页面配置- 参数:
biscuitSecurityProperties- 配置信息messageSourceAccessorObjectProvider- i18n 信息- 返回:
- CustomLoginUrlAuthenticationEntryPoint
-
oauth2TokenGenerator
@Bean @ConditionalOnMissingBean public org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> oauth2TokenGenerator(com.nimbusds.jose.jwk.source.JWKSource<com.nimbusds.jose.proc.SecurityContext> jwkSource, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext> accessTokenCustomizer) OAuth2TokenGenerator 配置- 参数:
jwkSource- jwkaccessTokenCustomizer- accessTokenCustomizer- 返回:
- OAuth2TokenGenerator
-
authorizationServerSecurityFilterChain
@Bean @Order(-10) public org.springframework.security.web.SecurityFilterChain authorizationServerSecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.beans.factory.ObjectProvider<List<CustomAuthenticationGrant>> customAuthenticationGrants, CustomLoginUrlAuthenticationEntryPoint customLoginUrlAuthenticationEntryPoint) throws Exception 安全配置- 参数:
http-- 返回:
- 抛出:
Exception
-