@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) 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,
AuthenticationManager authenticationManager,
ObjectProvider<org.springframework.security.oauth2.provider.token.TokenStore> tokenStore,
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, AuthenticationManager authenticationManager, ObjectProvider<org.springframework.security.oauth2.provider.token.TokenStore> tokenStore, ObjectProvider<org.springframework.security.oauth2.provider.token.AccessTokenConverter> tokenConverter, AuthorizationServerProperties properties)
public void configure(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients) throws 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
Exception
public void configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints) throws 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
Exception
public void configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer security) throws 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
Exception
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.