@Configuration @ConditionalOnClass(value=org.springframework.social.connect.support.OAuth2ConnectionFactory.class) @Conditional(value=org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerTokenServicesConfiguration.NotTokenInfoCondition.class) protected static class ResourceServerTokenServicesConfiguration.RemoteTokenServicesConfiguration.SocialTokenServicesConfiguration extends Object
Constructor and Description |
---|
SocialTokenServicesConfiguration(ResourceServerProperties sso,
org.springframework.beans.factory.ObjectProvider<org.springframework.social.connect.support.OAuth2ConnectionFactory<?>> connectionFactory,
UserInfoRestTemplateFactory restTemplateFactory,
org.springframework.beans.factory.ObjectProvider<AuthoritiesExtractor> authoritiesExtractor,
org.springframework.beans.factory.ObjectProvider<PrincipalExtractor> principalExtractor) |
Modifier and Type | Method and Description |
---|---|
SpringSocialTokenServices |
socialTokenServices() |
UserInfoTokenServices |
userInfoTokenServices() |
public SocialTokenServicesConfiguration(ResourceServerProperties sso, org.springframework.beans.factory.ObjectProvider<org.springframework.social.connect.support.OAuth2ConnectionFactory<?>> connectionFactory, UserInfoRestTemplateFactory restTemplateFactory, org.springframework.beans.factory.ObjectProvider<AuthoritiesExtractor> authoritiesExtractor, org.springframework.beans.factory.ObjectProvider<PrincipalExtractor> principalExtractor)
@Bean @ConditionalOnBean(value=org.springframework.social.connect.ConnectionFactoryLocator.class) @ConditionalOnMissingBean(value=org.springframework.security.oauth2.provider.token.ResourceServerTokenServices.class) public SpringSocialTokenServices socialTokenServices()
@Bean @ConditionalOnMissingBean(value={org.springframework.social.connect.ConnectionFactoryLocator.class,org.springframework.security.oauth2.provider.token.ResourceServerTokenServices.class}) public UserInfoTokenServices userInfoTokenServices()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.