o
    ÿÑÐbk  ã                   @   sF   G d d„ de ƒZG dd„ de ƒZG dd„ deƒZG dd„ deeƒZdS )	c                   @   ó$   e Zd Zdd„ Zdd„ Zdd„ ZdS )ÚClientMixinc                 C   ó   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©Úself© r   ú\/var/www/secure340b-portal/env/lib/python3.10/site-packages/authlib/oauth1/rfc5849/models.pyÚget_default_redirect_uri   ó   	z$ClientMixin.get_default_redirect_uric                 C   r   )zâA 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   r   r   r	   Úget_client_secret   ó   zClientMixin.get_client_secretc                 C   r   )zèA 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   r   r   r	   Úget_rsa_public_key   r   zClientMixin.get_rsa_public_keyN)Ú__name__Ú
__module__Ú__qualname__r
   r   r   r   r   r   r	   r      s    	r   c                   @   s   e Zd Zdd„ Zdd„ ZdS )ÚTokenCredentialMixinc                 C   r   )zðA 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   r   r   r	   Úget_oauth_token"   r   z$TokenCredentialMixin.get_oauth_tokenc                 C   r   )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   r   r   r	   Úget_oauth_token_secret-   r   z+TokenCredentialMixin.get_oauth_token_secretN)r   r   r   r   r   r   r   r   r	   r   !   s    r   c                   @   r   )ÚTemporaryCredentialMixinc                 C   r   )zàA 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   r   r   r	   Úget_client_id:   r   z&TemporaryCredentialMixin.get_client_idc                 C   r   )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   r   r   r	   Úget_redirect_uriC   ó   
z)TemporaryCredentialMixin.get_redirect_uric                 C   r   )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   Zverifierr   r   r	   Úcheck_verifierO   r   z'TemporaryCredentialMixin.check_verifierN)r   r   r   r   r   r   r   r   r   r	   r   9   s    	r   c                   @   s<   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ ZdS )ÚTemporaryCredentialc                 C   ó
   |   d¡S )NZ	client_id©Úgetr   r   r   r	   r   ]   ó   
z!TemporaryCredential.get_client_idc                 C   r   )NZuser_idr   r   r   r   r	   Úget_user_id`   r   zTemporaryCredential.get_user_idc                 C   r   )NZoauth_callbackr   r   r   r   r	   r   c   r   z$TemporaryCredential.get_redirect_uric                 C   s   |   d¡|kS )NZoauth_verifierr   r   r   r   r	   r   f   s   z"TemporaryCredential.check_verifierc                 C   r   )NZoauth_tokenr   r   r   r   r	   r   i   r   z#TemporaryCredential.get_oauth_tokenc                 C   r   )NZoauth_token_secretr   r   r   r   r	   r   l   r   z*TemporaryCredential.get_oauth_token_secretN)	r   r   r   r   r    r   r   r   r   r   r   r   r	   r   \   s    r   N)Úobjectr   r   r   Údictr   r   r   r   r	   Ú<module>   s   #