类 Oauth2Config

java.lang.Object
cn.bbwres.biscuit.security.oauth2.config.Oauth2Config

@AutoConfiguration public class Oauth2Config extends Object
oauth2 相关配置
作者:
zhanglinfeng
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    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)
    安全配置
    org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings
    AuthorizationServerSettings 配置 配置端点信息
    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 配置

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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 - jwk
      accessTokenCustomizer - 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