Interface AzureUserManagedIdentityRestClient
public interface AzureUserManagedIdentityRestClient
Reactive REST client to get access token from Microsoft Entra ID by means of User Managed Identity.
To use this method, the environment variables IDENTITY_CLIENT_ID
.
- Author:
- Antonio Tarricone
-
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni
<AccessToken> getAccessToken
(String scope) Retrieves an access token for an Azure resource.
-
Method Details
-
getAccessToken
@GET @Produces("application/json") @ClientQueryParam(name="api-version",value="2019-08-01") @ClientQueryParam(name="client_id",value="${IDENTITY_CLIENT_ID}") @ClientHeaderParam(name="x-identity-header", value="${IDENTITY_HEADER}") io.smallrye.mutiny.Uni<AccessToken> getAccessToken(@QueryParam("resource") String scope) Retrieves an access token for an Azure resource.
- Parameters:
scope
-Scope
- Returns:
AccessToken
-