Current Dir: /snap/core22/2437/usr/lib/python3/dist-packages/oauthlib/openid/connect/core/endpoints/__pycache__/

[FILE] pre_configured.cpython-310.pyc [ edit | delete | rename ]
[FILE] userinfo.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]

Viewing: /snap/core22/2437/usr/lib/python3/dist-packages/oauthlib/openid/connect/core/endpoints/__pycache__/pre_configured.cpython-310.pyc

o

���a2�	@s�dZddlmZmZmZmZmZddlmZ	m
Z
mZm
Z
mZddlmZddlmZmZmZddlmZmZmZddlmZd	d
lmZGdd�deeeeee�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@seZdZdZ		ddd�ZdS)�Serverz<An all-in-one endpoint featuring all four major grant types.NcOsFt|�|_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.
        )�
default_grant�
oidc_grant�code)r�token�id_tokenzid_token tokenz
code tokenz
code id_tokenzcode id_token token�none)�default_response_type�response_types�default_token_type�authorization_code)r�password�client_credentials�
refresh_token)�default_grant_type�grant_typesr�Bearer)r%�JWT)�
default_token�token_typesN)!�OAuth2AuthorizationCodeGrant�
auth_grant�OAuth2ImplicitGrant�implicit_grantr�password_grantr�credentials_grantr
�
refresh_grantr�openid_connect_authr	�openid_connect_implicitr�openid_connect_hybridr�bearerr�jwtr�auth_grant_choicer�implicit_grant_choicer�__init__r�token_grant_choicerrrrr)�self�request_validator�token_expires_in�token_generator�refresh_token_generator�args�kwargs�r@�W/usr/lib/python3/dist-packages/oauthlib/openid/connect/core/endpoints/pre_configured.pyr7!sZ

�




���
�
���zServer.__init__)NNN)�__name__�
__module__�__qualname__�__doc__r7r@r@r@rArs
�rN)rE�!oauthlib.oauth2.rfc6749.endpointsrrrrr�#oauthlib.oauth2.rfc6749.grant_typesrr)rr	r+r
r�oauthlib.oauth2.rfc6749.tokensrr$r�grant_types.dispatchersrrr�tokensr�userinforrr@r@r@rA�<module>s�
Upload File: