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.

get_authentication_headers()

Gets the current access token or refreshes the token if it has expired.

get_graph_authentication_headers()

Gets the current graph access token or refreshes the token if it has expired.