Package | Description |
---|---|
com.azure.core.credential |
Package containing basic credential classes for authentication purposes.
|
com.azure.core.http.policy |
Package containing HttpPipelinePolicy interface and its implementations.
|
Modifier and Type | Method and Description |
---|---|
TokenRequestContext |
TokenRequestContext.addScopes(String... scopes)
Adds one or more scopes to the request scopes.
|
TokenRequestContext |
TokenRequestContext.setClaims(String claims)
Set the additional claims to be included in the token.
|
TokenRequestContext |
TokenRequestContext.setScopes(List<String> scopes)
Sets the scopes required for the token.
|
Modifier and Type | Method and Description |
---|---|
Mono<AccessToken> |
BasicAuthenticationCredential.getToken(TokenRequestContext request) |
Mono<AccessToken> |
TokenCredential.getToken(TokenRequestContext request)
Asynchronously get a token for a given resource/audience.
|
Modifier and Type | Method and Description |
---|---|
Mono<Void> |
BearerTokenAuthenticationPolicy.setAuthorizationHeader(HttpPipelineCallContext context,
TokenRequestContext tokenRequestContext)
Authorizes the request with the bearer token acquired using the specified
tokenRequestContext |
Copyright © 2021 Microsoft Corporation. All rights reserved.