
    ~hZ                     Z     G d  d      Z  G d d      Z G d de      Z G d dee      Zy)	c                       e Zd Zd Zd Zd Zy)ClientMixinc                     t               )a  A method to get client default redirect_uri. For instance, the
        database table for client has a column called ``default_redirect_uri``::

            def get_default_redirect_uri(self):
                return self.default_redirect_uri

        :return: A URL string
        NotImplementedErrorselfs    Y/opt/mcp/mcp-sentiment/venv/lib/python3.12/site-packages/authlib/oauth1/rfc5849/models.pyget_default_redirect_uriz$ClientMixin.get_default_redirect_uri        "##    c                     t               )zA method to return the client_secret of this client. For instance,
        the database table has a column called ``client_secret``::

            def get_client_secret(self):
                return self.client_secret
        r   r   s    r	   get_client_secretzClientMixin.get_client_secret        "##r   c                     t               )zA method to get the RSA public key for RSA-SHA1 signature method.
        For instance, the value is saved on column ``rsa_public_key``::

            def get_rsa_public_key(self):
                return self.rsa_public_key
        r   r   s    r	   get_rsa_public_keyzClientMixin.get_rsa_public_key   r   r   N)__name__
__module____qualname__r
   r   r    r   r	   r   r      s    	$$$r   r   c                       e Zd Zd Zd Zy)TokenCredentialMixinc                     t               )zA method to get the value of ``oauth_token``. For instance, the
        database table has a column called ``oauth_token``::

            def get_oauth_token(self):
                return self.oauth_token

        :return: A string
        r   r   s    r	   get_oauth_tokenz$TokenCredentialMixin.get_oauth_token!   r   r   c                     t               )a  A method to get the value of ``oauth_token_secret``. For instance,
        the database table has a column called ``oauth_token_secret``::

            def get_oauth_token_secret(self):
                return self.oauth_token_secret

        :return: A string
        r   r   s    r	   get_oauth_token_secretz+TokenCredentialMixin.get_oauth_token_secret,   r   r   N)r   r   r   r   r   r   r   r	   r   r       s    	$	$r   r   c                       e Zd Zd Zd Zd Zy)TemporaryCredentialMixinc                     t               )zA method to get the client_id associated with this credential.
        For instance, the table in the database has a column ``client_id``::

            def get_client_id(self):
                return self.client_id
        r   r   s    r	   get_client_idz&TemporaryCredentialMixin.get_client_id9   r   r   c                     t               )a)  A method to get temporary credential's ``oauth_callback``.
        For instance, the database table for temporary credential has a
        column called ``oauth_callback``::

            def get_redirect_uri(self):
                return self.oauth_callback

        :return: A URL string
        r   r   s    r	   get_redirect_uriz)TemporaryCredentialMixin.get_redirect_uriB        "##r   c                     t               )aS  A method to check if the given verifier matches this temporary
        credential. For instance that this temporary credential has recorded
        the value in database as column ``oauth_verifier``::

            def check_verifier(self, verifier):
                return self.oauth_verifier == verifier

        :return: Boolean
        r   r   verifiers     r	   check_verifierz'TemporaryCredentialMixin.check_verifierN   r"   r   N)r   r   r   r   r!   r&   r   r   r	   r   r   8   s    $
$
$r   r   c                   0    e Zd Zd Zd Zd Zd Zd Zd Zy)TemporaryCredentialc                 $    | j                  d      S )N	client_idgetr   s    r	   r   z!TemporaryCredential.get_client_id\   s    xx$$r   c                 $    | j                  d      S )Nuser_idr+   r   s    r	   get_user_idzTemporaryCredential.get_user_id_   s    xx	""r   c                 $    | j                  d      S )Noauth_callbackr+   r   s    r	   r!   z$TemporaryCredential.get_redirect_urib   s    xx())r   c                 *    | j                  d      |k(  S )Noauth_verifierr+   r$   s     r	   r&   z"TemporaryCredential.check_verifiere   s    xx()X55r   c                 $    | j                  d      S )Noauth_tokenr+   r   s    r	   r   z#TemporaryCredential.get_oauth_tokenh   s    xx&&r   c                 $    | j                  d      S )Noauth_token_secretr+   r   s    r	   r   z*TemporaryCredential.get_oauth_token_secretk   s    xx,--r   N)	r   r   r   r   r/   r!   r&   r   r   r   r   r	   r(   r(   [   s     %#*6'.r   r(   N)r   r   r   dictr(   r   r   r	   <module>r9      s6   $ $>$ $0 $3  $F.$ 8 .r   