Class AzureWorkloadIdentityClient
java.lang.Object
it.pagopa.swclient.mil.azureservices.identity.client.workload.AzureWorkloadIdentityClient
- All Implemented Interfaces:
AzureIdentityClient
@ApplicationScoped
public class AzureWorkloadIdentityClient
extends Object
implements AzureIdentityClient
Reactive client (it's a proxy of REST client) to get access token from Microsoft Entra ID by means of Workload Identity.
- Author:
- Antonio Tarricone
-
Field Summary
Modifier and TypeFieldDescriptionprivate AzureWorkloadIdentityRestClient
Reactive REST client to get access token from Microsoft Entra ID by means of Workload Identity. -
Constructor Summary
ConstructorDescriptionAzureWorkloadIdentityClient
(Optional<String> authorityHost, Optional<String> tenantId) 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 Workload Identity.
- See Also:
-
-
Constructor Details
-
AzureWorkloadIdentityClient
Constructor.
- Parameters:
authorityHost
- Endpoint to get access token by means of workload identitytenantId
- Tenant ID
-
-
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:
-