Class AzureUserManagedIdentityClient
java.lang.Object
it.pagopa.swclient.mil.azureservices.identity.client.usermanaged.AzureUserManagedIdentityClient
- All Implemented Interfaces:
AzureIdentityClient
@ApplicationScoped
public class AzureUserManagedIdentityClient
extends Object
implements AzureIdentityClient
Reactive client (it's a proxy of REST client) to get access token from Microsoft Entra ID by means of User Managed Identity.
To use this method, the environment variable IDENTITY_CLIENT_ID
must be set.
- Author:
- Antonio Tarricone
-
Field Summary
Modifier and TypeFieldDescriptionReactive REST client to get access token from Microsoft Entra ID by means of User Managed Identity. -
Constructor Summary
ConstructorDescriptionAzureUserManagedIdentityClient
(Optional<String> identityEndpoint) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni
<AccessToken> getAccessToken
(String scope) Retrieves an access token for an Azure resource.
-
Field Details
-
restClient
Reactive REST client to get access token from Microsoft Entra ID by means of User Managed Identity.
- See Also:
-
-
Constructor Details
-
AzureUserManagedIdentityClient
Constructor.
- Parameters:
identityEndpoint
- Endpoint to get access token by means of user managed identity
-
-
Method Details
-
getAccessToken
Description copied from interface:AzureIdentityClient
Retrieves an access token for an Azure resource.
- Specified by:
getAccessToken
in interfaceAzureIdentityClient
- Parameters:
scope
-Scope
- Returns:
AccessToken
- See Also:
-