Service Principal Authentication#

ServicePrincipalAuthentication(tenant_id, …)

Authenticates to the Azure OAuth provider using a service principal.

You can use an Service Principal credentials to authenticate to your Microsoft Purview instance.

ServicePrincipalAuthentication.get_authentication_headers()

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

ServicePrincipalAuthentication.get_graph_authentication_headers()

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