@Configuration @ConditionalOnClass(value=org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer.class) @ConditionalOnMissingBean(value=org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurer.class) @ConditionalOnBean(value=org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerEndpointsConfiguration.class) @EnableConfigurationProperties(value=AuthorizationServerProperties.class) @Import(value=AuthorizationServerTokenServicesConfiguration.class) public class OAuth2AuthorizationServerConfiguration extends org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
AuthorizationServerConfigurer
already exists or if authorization server is not
enabled.Modifier and Type | Class and Description |
---|---|
protected static class |
OAuth2AuthorizationServerConfiguration.BaseClientDetailsConfiguration |
protected static class |
OAuth2AuthorizationServerConfiguration.ClientDetailsLogger |
Constructor and Description |
---|
OAuth2AuthorizationServerConfiguration(org.springframework.security.oauth2.provider.client.BaseClientDetails details,
org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration authenticationConfiguration,
org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.provider.token.TokenStore> tokenStore,
org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.provider.token.AccessTokenConverter> tokenConverter,
AuthorizationServerProperties properties) |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints) |
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer security) |
void |
configure(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients) |
public OAuth2AuthorizationServerConfiguration(org.springframework.security.oauth2.provider.client.BaseClientDetails details, org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration authenticationConfiguration, org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.provider.token.TokenStore> tokenStore, org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.provider.token.AccessTokenConverter> tokenConverter, AuthorizationServerProperties properties) throws java.lang.Exception
java.lang.Exception
public void configure(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients) throws java.lang.Exception
configure
in interface org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurer
configure
in class org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
java.lang.Exception
public void configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints) throws java.lang.Exception
configure
in interface org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurer
configure
in class org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
java.lang.Exception
public void configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer security) throws java.lang.Exception
configure
in interface org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurer
configure
in class org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
java.lang.Exception