Class AzureClientRegistration


  • public class AzureClientRegistration
    extends Object
    Azure oauth2 client registration. It has 2 kind of scopes: 1. AzureClientRegistration.client.scopes: used to authorize. 2. AzureClientRegistration.accessTokenScopes: used to get access_token.
    • Constructor Detail

      • AzureClientRegistration

        public AzureClientRegistration​(org.springframework.security.oauth2.client.registration.ClientRegistration client,
                                       Set<String> scopes)
        Creates a new instance of AzureClientRegistration.
        Parameters:
        client - the client registration
        scopes - the set of access token scopes
    • Method Detail

      • getClient

        public org.springframework.security.oauth2.client.registration.ClientRegistration getClient()
        Gets the client registration.
        Returns:
        the client registration
      • getAccessTokenScopes

        public Set<String> getAccessTokenScopes()
        Gets the set of access token scopes.
        Returns:
        the set of access token scopes