Class OAuth2AuthenticationProviderConfigurer

java.lang.Object
org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,B>
org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<OAuth2AuthenticationProviderConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
cn.herodotus.engine.oauth2.authentication.configurer.OAuth2AuthenticationProviderConfigurer
All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>

public class OAuth2AuthenticationProviderConfigurer extends org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<OAuth2AuthenticationProviderConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>

Description: 自定义 AuthenticationProvider 配置器

Author:
: gengwei.zheng
Date:
: 2023/9/1 15:46
  • Constructor Summary

    Constructors
    Constructor
    Description
    OAuth2AuthenticationProviderConfigurer(org.springframework.security.core.session.SessionRegistry sessionRegistry, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, OAuth2AuthenticationProperties authenticationProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)
     

    Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer

    disable, getSecurityContextHolderStrategy, withObjectPostProcessor, withObjectPostProcessor

    Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter

    addObjectPostProcessor, addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OAuth2AuthenticationProviderConfigurer

      public OAuth2AuthenticationProviderConfigurer(org.springframework.security.core.session.SessionRegistry sessionRegistry, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, OAuth2AuthenticationProperties authenticationProperties)
  • Method Details

    • configure

      public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) throws Exception
      Specified by:
      configure in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>
      Overrides:
      configure in class org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>
      Throws:
      Exception