
    lKj;                     &    d dl mZ  G d de      Zy)   )Endpointc                   ,    e Zd ZdZdZdgZd Zd Zd Zy)TokenEndpointzBase class for token-based endpoints (revocation, introspection).

    Subclasses must implement :meth:`authenticate_token` and
    :meth:`create_endpoint_response`.
    )access_tokenrefresh_tokenclient_secret_basicc                 v    | j                   j                  || j                  | j                        }||_        |S )z>Authenticate client for endpoint with ``CLIENT_AUTH_METHODS``.)serverauthenticate_clientCLIENT_AUTH_METHODSENDPOINT_NAMEclientselfrequestr   s      v/Users/ahmed/devFolder/Ultron/claude-voice/.venv/lib/python3.12/site-packages/authlib/oauth2/rfc6749/token_endpoint.pyauthenticate_endpoint_clientz*TokenEndpoint.authenticate_endpoint_client   s7    00T--t/A/A
      c                     t               )zBAuthenticate and return the token. Subclasses must implement this.NotImplementedErrorr   s      r   authenticate_tokenz TokenEndpoint.authenticate_token       !##r   c                     t               )zHProcess the request and return response. Subclasses must implement this.r   )r   r   s     r   create_endpoint_responsez&TokenEndpoint.create_endpoint_response   r   r   N)	__name__
__module____qualname____doc__SUPPORTED_TOKEN_TYPESr   r   r   r    r   r   r   r      s'     >01$$r   r   N)endpointr   r   r!   r   r   <module>r#      s    $H $r   