o
    ¾­§i\  ã                   @   sD   d dl mZmZmZ d dlmZ G dd„ deƒZG dd„ deƒZdS )é    )ÚAnyÚIterableÚOptional)ÚClientAuthenticationErrorc                   @   s   e Zd ZdZdS )ÚCredentialUnavailableErrorz]The credential did not attempt to authenticate because required data or state is unavailable.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úQ/home/app/Keep/.python/lib/python3.10/site-packages/azure/identity/_exceptions.pyr   
   s    r   c                       sr   e Zd ZdZ	ddee dee dee deddf
‡ fdd	„Ze	dee fd
d„ƒZ
e	dee fdd„ƒZ‡  ZS )ÚAuthenticationRequiredErroraˆ  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.

    :param str scopes: Scopes requested during the failed authentication
    :param str message: An error message explaining the reason for the exception.
    :param str claims: Additional claims required in the next authentication.
    NÚscopesÚmessageÚclaimsÚkwargsÚreturnc                    s2   || _ || _|s
d}tt| ƒjdd|i|¤Ž d S )NzTInteractive authentication is required to get a token. Call 'authenticate' to begin.r   r   )Ú_claimsÚ_scopesÚsuperr   Ú__init__)Úselfr   r   r   r   ©Ú	__class__r   r   r      s
   z$AuthenticationRequiredError.__init__c                 C   ó   | j S )z¦Scopes requested during the failed authentication.

        :return: Scopes requested during the failed authentication.
        :rtype: ~typing.Iterable[str]
        )r   ©r   r   r   r   r   $   ó   z"AuthenticationRequiredError.scopesc                 C   r   )zÒAdditional claims required in the next authentication.

        :return: Additional claims required in the next authentication, or None if no additional claims are required.
        :rtype: str or None
        )r   r   r   r   r   r   -   r   z"AuthenticationRequiredError.claims)NN)r   r   r	   r
   r   Ústrr   r   r   Úpropertyr   r   Ú__classcell__r   r   r   r   r      s$    ÿÿÿÿÿþ	r   N)Útypingr   r   r   Zazure.core.exceptionsr   r   r   r   r   r   r   Ú<module>   s   