pyapacheatlas.auth.serviceprincipal.ServicePrincipalAuthentication#
- class pyapacheatlas.auth.serviceprincipal.ServicePrincipalAuthentication(tenant_id, client_id, client_secret)#
Authenticates to the Azure OAuth provider using a service principal.
- __init__(tenant_id, client_id, client_secret)#
- Parameters
tenant_id (str) – The tenant id of your Azure subscription.
client_id (str) – The client id or application id of your service principal.
client_secret (str) – The client secret or application secret of your service principal.
Methods
__init__
(tenant_id, client_id, client_secret)- param str tenant_id
The tenant id of your Azure subscription.
Gets the current access token or refreshes the token if it has expired.
Gets the current graph access token or refreshes the token if it has expired.