Azure.Identity.AuthorizationCodeCredential
Authenticates by redeeming an authorization code previously obtained from Microsoft Entra ID. See
for more information
about the authorization code authentication flow.
protected AuthorizationCodeCredential()
Protected constructor for mocking.
public AuthorizationCodeCredential(string tenantId, string clientId, string clientSecret, string authorizationCode)
Creates an instance of the AuthorizationCodeCredential with the details needed to authenticate against Microsoft Entra ID with a prefetched authorization code.
public AuthorizationCodeCredential(string tenantId, string clientId, string clientSecret, string authorizationCode, AuthorizationCodeCredentialOptions options)
Creates an instance of the AuthorizationCodeCredential with the details needed to authenticate against Microsoft Entra ID with a prefetched authorization code.
public AuthorizationCodeCredential(string tenantId, string clientId, string clientSecret, string authorizationCode, TokenCredentialOptions options)
Creates an instance of the AuthorizationCodeCredential with the details needed to authenticate against Microsoft Entra ID with a prefetched authorization code.