Class AzureSystemManagedIdentityClient
java.lang.Object
it.pagopa.swclient.mil.azureservices.identity.client.systemmanaged.AzureSystemManagedIdentityClient
- All Implemented Interfaces:
AzureIdentityClient
@ApplicationScoped
public class AzureSystemManagedIdentityClient
extends Object
implements AzureIdentityClient
Reactive client (it's a proxy of REST client) to get access token from Microsoft Entra ID by means of System Managed Identity.
- Author:
- Antonio Tarricone
-
Field Summary
Modifier and TypeFieldDescriptionReactive REST client to get access token from Microsoft Entra ID by means of System Managed Identity. -
Constructor Summary
ConstructorDescriptionAzureSystemManagedIdentityClient
(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 System Managed Identity.
- See Also:
-
-
Constructor Details
-
AzureSystemManagedIdentityClient
Constructor.
- Parameters:
identityEndpoint
- Endpoint to get access token by means of system 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:
-