o
    ˷6i{                     @   s<   d dl mZ d dlmZmZ d dlmZ G dd deZdS )    )DeviceAuthorizationEndpoint)CallableOptional)RequestValidatorc                   @   sD   e Zd ZdZ			ddedededee dedgef f
d	d
Z	dS )DeviceApplicationServerzLAn all-in-one endpoint featuring Authorization code grant and Bearer tokens.   Nrequest_validatorverification_uriintervalverification_uri_completeuser_code_generatorc                 K   s   t j| |||||d dS )a  Construct a new web application server.

        :param request_validator: An implementation of
                                  oauthlib.oauth2.rfc8626.RequestValidator.
        :param interval: How long the device needs to wait before polling the server
        :param verification_uri: the verification_uri to be send back.
        :param user_code_generator: a callable that allows the user code to be configured.
        )r
   r	   r   r   N)r   __init__)selfr   r	   r
   r   r   kwargs r   u/var/www/hoanhtaovolam_webdjango/env/lib/python3.10/site-packages/oauthlib/oauth2/rfc8628/endpoints/pre_configured.pyr      s   
z DeviceApplicationServer.__init__)r   NN)
__name__
__module____qualname____doc__r   strintr   r   r   r   r   r   r   r   	   s     r   N)6oauthlib.oauth2.rfc8628.endpoints.device_authorizationr   typingr   r   .oauthlib.openid.connect.core.request_validatorr   r   r   r   r   r   <module>   s    