o
    BZœc‘  ã                   @   s¦   d dl mZ ddlmZ ddlmZmZmZmZm	Z	 G dd„ deƒZ
G dd	„ d	ee
eƒZG d
d„ de	eƒZG dd„ deeƒZG dd„ dee
eƒZG dd„ de	eƒZdS )é    )ÚViewé   )Úoauth2_settingsé   )ÚClientProtectedResourceMixinÚOAuthLibMixinÚProtectedResourceMixinÚReadWriteScopedResourceMixinÚScopedResourceMixinc                   @   s"   e Zd ZdZejZejZej	Z
dS )ÚInitializationMixinz"Initializer for OauthLibMixin
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚOAUTH2_SERVER_CLASSÚserver_classÚOAUTH2_VALIDATOR_CLASSÚvalidator_classÚOAUTH2_BACKEND_CLASSÚoauthlib_backend_class© r   r   úS/var/www/chikooza/env/lib/python3.10/site-packages/oauth2_provider/views/generic.pyr   
   s
    
r   c                   @   ó   e Zd ZdZdS )ÚProtectedResourceViewz]
    Generic view protecting resources by providing OAuth2 authentication out of the box
    N©r   r   r   r   r   r   r   r   r      s    r   c                   @   r   )ÚScopedProtectedResourceViewzu
    Generic view protecting resources by providing OAuth2 authentication and Scopes handling
    out of the box
    Nr   r   r   r   r   r      ó    r   c                   @   r   )ÚReadWriteScopedResourceViewz¼
    Generic view protecting resources with OAuth2 authentication and read/write scopes.
    GET, HEAD, OPTIONS http methods require "read" scope. Otherwise "write" scope is required.
    Nr   r   r   r   r   r   #   r   r   c                   @   r   )ÚClientProtectedResourceViewzŸView for protecting a resource with client-credentials method.
    This involves allowing access tokens, Basic Auth and plain credentials in request body.
    Nr   r   r   r   r   r   +   s    r   c                   @   r   )Ú!ClientProtectedScopedResourceViewzNImpose scope restrictions if client protection fallsback to access token.
    Nr   r   r   r   r   r   4   s    r   N)Údjango.views.genericr   Úsettingsr   Úmixinsr   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   Ú<module>   s    
	