Class BearerTokenAuthenticationChallengePolicy

  • All Implemented Interfaces:
    HttpPipelinePolicy

    public class BearerTokenAuthenticationChallengePolicy
    extends Object
    implements HttpPipelinePolicy
    The pipeline policy that applies a token credential to an HTTP request with "Bearer" scheme.
    • Constructor Detail

      • BearerTokenAuthenticationChallengePolicy

        public BearerTokenAuthenticationChallengePolicy​(TokenCredential credential,
                                                        String... scopes)
        Creates BearerTokenAuthenticationChallengePolicy.
        Parameters:
        credential - the token credential to authenticate the request
        scopes - the scopes required for the token