Share via


authentication Package

Modules

async_default_azure_credential_wrapper
entra_id_authentication

Functions

get_entra_auth_token

Retrieve a Microsoft Entra Auth Token for a given token endpoint.

The token endpoint may be specified as an environment variable, via the .env file or as an argument. If the token endpoint is not provided, the default is None.

get_entra_auth_token(token_endpoint: str) -> str | None

Parameters

Name Description
token_endpoint
Required

The token endpoint to use to retrieve the authentication token.

Returns

Type Description

The Azure token or None if the token could not be retrieved.