o
    ©D®fO  ã                   @   s   G d d„ dƒZ dS )c                   @   sJ   e Zd ZdZdZdgZdd„ Zdd„ Zdd	„ Zd
d„ Z	dd„ Z
dd„ ZdS )ÚTokenEndpointN)Úaccess_tokenÚrefresh_tokenÚclient_secret_basicc                 C   s
   || _ d S ©N)Úserver)Úselfr   © r   ú^/home/ubuntu/webapp/venv/lib/python3.10/site-packages/authlib/oauth2/rfc6749/token_endpoint.pyÚ__init__	   s   
zTokenEndpoint.__init__c                 C   s
   |   |¡S r   )Úcreate_endpoint_response©r   Úrequestr   r   r	   Ú__call__   s   
zTokenEndpoint.__call__c                 C   s   | j  |¡S r   )r   Úcreate_oauth2_requestr   r   r   r	   Úcreate_endpoint_request   s   z%TokenEndpoint.create_endpoint_requestc                 C   s   | j  || j| j¡}||_|S )zIAuthentication client for endpoint with ``CLIENT_AUTH_METHODS``.
        )r   Úauthenticate_clientÚCLIENT_AUTH_METHODSÚENDPOINT_NAMEÚclient©r   r   r   r   r   r	   Úauthenticate_endpoint_client   s
   
ÿz*TokenEndpoint.authenticate_endpoint_clientc                 C   ó   t ƒ ‚r   ©ÚNotImplementedErrorr   r   r   r	   Úauthenticate_token   ó   z TokenEndpoint.authenticate_tokenc                 C   r   r   r   r   r   r   r	   r      r   z&TokenEndpoint.create_endpoint_response)Ú__name__Ú
__module__Ú__qualname__r   ÚSUPPORTED_TOKEN_TYPESr   r
   r   r   r   r   r   r   r   r   r	   r      s    r   N)r   r   r   r   r	   Ú<module>   s    