Class OAuth2ResourceOwnerPasswordTokenEndpointConfigurer
java.lang.Object
org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,B>
org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<OAuth2ResourceOwnerPasswordTokenEndpointConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
io.jmix.authserver.authentication.OAuth2ResourceOwnerPasswordTokenEndpointConfigurer
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,
org.springframework.security.config.annotation.web.builders.HttpSecurity>
public class OAuth2ResourceOwnerPasswordTokenEndpointConfigurer
extends org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<OAuth2ResourceOwnerPasswordTokenEndpointConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
The class configures the token endpoint by registering
OAuth2ResourceOwnerPasswordCredentialsAuthenticationConverter
and
OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider
which are required for OAuth 2.0 Resource Owner
Password Credentials grant.-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer
disable, getSecurityContextHolderStrategy, withObjectPostProcessor
Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter
addObjectPostProcessor, and, getBuilder, postProcess, setBuilder
-
Constructor Details
-
OAuth2ResourceOwnerPasswordTokenEndpointConfigurer
public OAuth2ResourceOwnerPasswordTokenEndpointConfigurer()
-
-
Method Details
-
init
public void init(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Specified by:
init
in interfaceorg.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,
org.springframework.security.config.annotation.web.builders.HttpSecurity> - Overrides:
init
in classorg.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,
org.springframework.security.config.annotation.web.builders.HttpSecurity> - Throws:
Exception
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Specified by:
configure
in interfaceorg.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,
org.springframework.security.config.annotation.web.builders.HttpSecurity> - Overrides:
configure
in classorg.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,
org.springframework.security.config.annotation.web.builders.HttpSecurity> - Throws:
Exception
-