ó
O'—^c           @   s‹   d  d l  m Z d d l m Z d d l m Z m Z m Z d e e f d „  ƒ  YZ d e e f d	 „  ƒ  YZ	 d
 e e f d „  ƒ  YZ
 d S(   iÿÿÿÿ(   t   Viewi   (   t   oauth2_settingsi   (   t   ProtectedResourceMixint   ScopedResourceMixint   ReadWriteScopedResourceMixint   ProtectedResourceViewc           B   s)   e  Z d  Z e j Z e j Z e j Z	 RS(   s]   
    Generic view protecting resources by providing OAuth2 authentication out of the box
    (
   t   __name__t
   __module__t   __doc__R   t   OAUTH2_SERVER_CLASSt   server_classt   OAUTH2_VALIDATOR_CLASSt   validator_classt   OAUTH2_BACKEND_CLASSt   oauthlib_backend_class(    (    (    s?   /tmp/pip-unpacked-wheel-ndW12l/oauth2_provider/views/generic.pyR      s   		t   ScopedProtectedResourceViewc           B   s   e  Z d  Z RS(   su   
    Generic view protecting resources by providing OAuth2 authentication and Scopes handling
    out of the box
    (   R   R   R   (    (    (    s?   /tmp/pip-unpacked-wheel-ndW12l/oauth2_provider/views/generic.pyR      s   t   ReadWriteScopedResourceViewc           B   s   e  Z d  Z RS(   s¼   
    Generic view protecting resources with OAuth2 authentication and read/write scopes.
    GET, HEAD, OPTIONS http methods require "read" scope. Otherwise "write" scope is required.
    (   R   R   R   (    (    (    s?   /tmp/pip-unpacked-wheel-ndW12l/oauth2_provider/views/generic.pyR      s   N(   t   django.views.genericR    t   settingsR   t   mixinsR   R   R   R   R   R   (    (    (    s?   /tmp/pip-unpacked-wheel-ndW12l/oauth2_provider/views/generic.pyt   <module>   s
   	