?????????? ????????? - ??????????????? - /usr/lib/python3.9/site-packages/oauthlib/openid/connect/core/endpoints/__pycache__/pre_configured.cpython-39.pyc
???????
a \��`2 � @ s� d Z ddlmZmZmZmZmZ ddlmZ m Z mZm Z mZ ddlmZ ddlmZmZmZ ddlmZmZmZ ddlmZ d d lmZ G dd� deeeeee�Zd S )z� oauthlib.openid.connect.core.endpoints.pre_configured ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module is an implementation of various endpoints needed for providing OpenID Connect servers. � )�AuthorizationEndpoint�IntrospectEndpoint�ResourceEndpoint�RevocationEndpoint� TokenEndpoint)�AuthorizationCodeGrant�ClientCredentialsGrant� ImplicitGrant�RefreshTokenGrant�%ResourceOwnerPasswordCredentialsGrant)�BearerToken� )r �HybridGrantr )� AuthorizationCodeGrantDispatcher�!AuthorizationTokenGrantDispatcher�ImplicitTokenGrantDispatcher)�JWTToken� )�UserInfoEndpointc @ s e Zd ZdZddd�ZdS )�Serverz<An all-in-one endpoint featuring all four major grant types.Nc O sF t |�| _t|�| _t|�| _t|�| _t|�| _ t |�| _t|�| _ t|�| _t||||�| _t||||�| _t| j| jd�| _t| j| j d�| _tj| d| j| j| j | j | j| j| j| jd�| jd� t|| j| jd�| _tj| d| j| j| j| j d�| jd� tj| d| j| jd �d � t�| |� t�| |� t �| |� dS )a� Construct a new all-grants-in-one server. :param request_validator: An implementation of oauthlib.oauth2.RequestValidator. :param token_expires_in: An int or a function to generate a token expiration offset (in seconds) given a oauthlib.common.Request object. :param token_generator: A function to generate a token from a request. :param refresh_token_generator: A function to generate a token from a request for the refresh token. :param kwargs: Extra parameters to pass to authorization-, token-, resource-, and revocation-endpoint constructors. )Z default_grantZ oidc_grant�code)r �tokenZid_tokenzid_token tokenz code tokenz code id_tokenzcode id_token tokenZnone)Zdefault_response_typeZresponse_types�default_token_type�authorization_code)r �passwordZclient_credentialsZ refresh_token)Zdefault_grant_type�grant_typesr �Bearer)r ZJWT)Z default_tokenZtoken_typesN)!�OAuth2AuthorizationCodeGrantZ auth_grant�OAuth2ImplicitGrantZimplicit_grantr Zpassword_grantr Zcredentials_grantr Z refresh_grantr Zopenid_connect_authr Zopenid_connect_implicitr Zopenid_connect_hybridr Zbearerr Zjwtr Zauth_grant_choicer Zimplicit_grant_choicer �__init__r Ztoken_grant_choicer r r r r )�selfZrequest_validatorZtoken_expires_inZtoken_generatorZrefresh_token_generator�args�kwargs� r# �Y/usr/lib/python3.9/site-packages/oauthlib/openid/connect/core/endpoints/pre_configured.pyr ! sZ � ��� � ���zServer.__init__)NNN)�__name__� __module__�__qualname__�__doc__r r# r# r# r$ r s �r N)r( Z!oauthlib.oauth2.rfc6749.endpointsr r r r r Z#oauthlib.oauth2.rfc6749.grant_typesr r r r r r r Zoauthlib.oauth2.rfc6749.tokensr r r Zgrant_types.dispatchersr r r �tokensr �userinfor r r# r# r# r$ �<module> s �
| ver. 1.6 |
Github
|
.
| PHP 8.2.30 | ??????????? ?????????: 0 |
proxy
|
phpinfo
|
???????????