ClientSecretCredential Class
Authenticates as a service principal using a client secret.
- Inheritance
-
azure.identity.aio._internal.AsyncContextManagerClientSecretCredentialazure.identity.aio._internal.get_token_mixin.GetTokenMixinClientSecretCredential
Constructor
ClientSecretCredential(tenant_id: str, client_id: str, client_secret: str, **kwargs: Any)
Parameters
- authority
- str
Authority of an Azure Active Directory endpoint, for example 'login.microsoftonline.com', the authority for Azure Public Cloud (which is the default). AzureAuthorityHosts defines authorities for other clouds.
- cache_persistence_options
- TokenCachePersistenceOptions
configuration for persistent token caching. If unspecified, the credential will cache tokens in memory.
Methods
| close |
Close the credential's transport session. |
close
Close the credential's transport session.
async close()
Feedback
Submit and view feedback for