+
    P(i                          ! R  R4      t R# )c                   p   a  ] tR t^t o RtRtRRRRRRRR/tRR	 ltR
 t]	R 4       t
RR ltRR ltRtV tR# )BearerTokenGeneratora  Bearer token generator which can create the payload for token response
by OAuth 2 server. A typical token response would be:

.. code-block:: http

    HTTP/1.1 200 OK
    Content-Type: application/json;charset=UTF-8
    Cache-Control: no-store
    Pragma: no-cache

    {
        "access_token":"mF_9.B5f-4.1JqM",
        "token_type":"Bearer",
        "expires_in":3600,
        "refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA"
    }
i  authorization_codei / implicitpasswordclient_credentialsNc                *    Wn         W n        W0n        R # N)access_token_generatorrefresh_token_generatorexpires_generator)selfr
   r   r   s   &&&&b/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/authlib/oauth2/rfc6750/token.py__init__BearerTokenGenerator.__init__   s     '=#'>$!2    c                @   V P                   f(   V P                  P                  W P                  4      pV# \	        V P                   4      '       d   V P                  W4      pV# \        V P                   \        4      '       d   V P                   pV# V P                  pV# r	   )r   GRANT_TYPES_EXPIRES_INgetDEFAULT_EXPIRES_INcallable
isinstanceint)r   client
grant_type
expires_ins   &&& r   _get_expires_in$BearerTokenGenerator._get_expires_in(   s    !!)448833J  d,,--//CJ
 	 ..44//J  00Jr   c                8    V'       d   V P                  V4      pV# r	   )get_allowed_scope)r   scopes   &&r   r   &BearerTokenGenerator.get_allowed_scope5   s    ,,U3Er   c                   V P                  W$4      pV P                  W!W4R7      pVf   V P                  W!4      pRRRV/pV'       d   WXR&   V'       d)   V P                  '       d   V P                  W!W4R7      VR&   V'       d   WHR&   V# )a  Generate a bearer token for OAuth 2.0 authorization token endpoint.

:param client: the client that making the request.
:param grant_type: current requested grant_type.
:param user: current authorized user.
:param expires_in: if provided, use this value as expires_in.
:param scope: current requested scope.
:param include_refresh_token: should refresh_token be included.
:return: Token dict
)r   r   userr    
token_typeBeareraccess_tokenr   refresh_tokenr    )r   r
   r   r   )	r   r   r   r#   r    r   include_refresh_tokenr&   tokens	   &&&&&&&  r   generateBearerTokenGenerator.generate;   s    & &&v522t 3 
 --fAJ (L
 ",, T%A%A%A%)%A%A4 &B &E/" "'Nr   c                (    V P                  WW4WV4      # r	   )r*   )r   r   r   r#   r    r   r(   s   &&&&&&&r   __call__BearerTokenGenerator.__call__c   s     }}Z
 	
r   )r
   r   r   )NN)NNNT)__name__
__module____qualname____firstlineno____doc__r   r   r   r   staticmethodr   r*   r-   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s^     &  	fDFf	3  
&P
 
r   r   N)r    r   r   <module>r9      s   m
 m
r   