o
    RD©i   ã                   @   s6   d dl mZ G dd„ dƒZG dd„ deƒZdd„ ZdS )	é   )Úoauth2_settingsc                   @   ó(   e Zd Zdd„ Zddd„Zddd„ZdS )	Ú
BaseScopesc                 C   ó   t dƒ‚)zò
        Return a dict-like object with all the scopes available in the
        system. The key should be the scope name and the value should be
        the description.

        ex: {"read": "A read scope", "write": "A write scope"}
        Ú ©ÚNotImplementedError©Úself© r   úO/var/www/Datamplify/venv/lib/python3.10/site-packages/oauth2_provider/scopes.pyÚget_all_scopes   ó   zBaseScopes.get_all_scopesNc                 O   r   )z·
        Return a list of scopes available for the current application/request.

        TODO: add info on where and why this method is called.

        ex: ["read", "write"]
        r   r   ©r
   ÚapplicationÚrequestÚargsÚkwargsr   r   r   Úget_available_scopes   r   zBaseScopes.get_available_scopesc                 O   r   )a   
        Return a list of the default scopes for the current application/request.
        This MUST be a subset of the scopes returned by `get_available_scopes`.

        TODO: add info on where and why this method is called.

        ex: ["read"]
        r   r   r   r   r   r   Úget_default_scopes   s   	zBaseScopes.get_default_scopes©NN©Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r      s    


r   c                   @   r   )	ÚSettingsScopesc                 C   ó   t jS ©N)r   ÚSCOPESr	   r   r   r   r   &   ó   zSettingsScopes.get_all_scopesNc                 O   r   r   )r   Ú_SCOPESr   r   r   r   r   )   r   z#SettingsScopes.get_available_scopesc                 O   r   r   )r   Ú_DEFAULT_SCOPESr   r   r   r   r   ,   r   z!SettingsScopes.get_default_scopesr   r   r   r   r   r   r   %   s    
r   c                  C   s   t j} | ƒ S r   )r   ÚSCOPES_BACKEND_CLASS)Úscopes_classr   r   r   Úget_scopes_backend0   s   r$   N)Úsettingsr   r   r   r$   r   r   r   r   Ú<module>   s    !