public class DefaultUserInfoRestTemplateFactory extends Object implements UserInfoRestTemplateFactory
OAuth2RestTemplate
used for extracting user info
during authentication if none is available.Constructor and Description |
---|
DefaultUserInfoRestTemplateFactory(ObjectProvider<List<UserInfoRestTemplateCustomizer>> customizers,
ObjectProvider<org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails> details,
ObjectProvider<org.springframework.security.oauth2.client.OAuth2ClientContext> oauth2ClientContext) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.client.OAuth2RestTemplate |
getUserInfoRestTemplate()
Return the
OAuth2RestTemplate used for extracting user info during
authentication if none is available. |
public DefaultUserInfoRestTemplateFactory(ObjectProvider<List<UserInfoRestTemplateCustomizer>> customizers, ObjectProvider<org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails> details, ObjectProvider<org.springframework.security.oauth2.client.OAuth2ClientContext> oauth2ClientContext)
public org.springframework.security.oauth2.client.OAuth2RestTemplate getUserInfoRestTemplate()
UserInfoRestTemplateFactory
OAuth2RestTemplate
used for extracting user info during
authentication if none is available.getUserInfoRestTemplate
in interface UserInfoRestTemplateFactory
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.