Class ClientAttributes
java.lang.Object
org.springframework.security.oauth2.client.web.ClientAttributes
Used for accessing the attribute that stores the the
 
ClientRegistration.getRegistrationId(). This ensures that
 ClientRegistrationIdProcessor
 aligns with all of ways of setting on both
 RestClient and
 WebClient.- 
Method SummaryModifier and TypeMethodDescriptionclientRegistrationId(String clientRegistrationId) Produces a Consumer that adds theclientRegistrationIdto be used to look up theOAuth2AuthorizedClient.static StringresolveClientRegistrationId(Map<String, Object> attributes) Resolves theclientRegistrationIdto be used to look up theOAuth2AuthorizedClient.
- 
Method Details- 
resolveClientRegistrationIdResolves theclientRegistrationIdto be used to look up theOAuth2AuthorizedClient.- Parameters:
- attributes- the to search
- Returns:
- the registration id to use.
 
- 
clientRegistrationIdProduces a Consumer that adds theclientRegistrationIdto be used to look up theOAuth2AuthorizedClient.- Parameters:
- clientRegistrationId- the- clientRegistrationIdto be used to look up the- OAuth2AuthorizedClient
- Returns:
- the Consumerto populate the attributes
 
 
-