AuthenticationRequiredError Class

Interactive authentication is required to acquire a token.

This error is raised only by interactive user credentials configured not to automatically prompt for user interaction as needed. Its properties provide additional information that may be required to authenticate. The control_interactive_prompts sample demonstrates handling this error by calling a credential's "authenticate" method.

Inheritance
azure.identity._exceptions.CredentialUnavailableError
AuthenticationRequiredError

Constructor

AuthenticationRequiredError(scopes: Iterable[str], message: Optional[str] = None, claims: Optional[str] = None, **kwargs: Any)

Parameters

scopes
message
default value: None
claims
default value: None

Attributes

claims

Additional claims required in the next authentication

scopes

Scopes requested during the failed authentication