Skip to content

Commit 9924b26

Browse files
Psykopearsynasius
authored andcommitted
Added doc for DEFAULT_SCOPES setting
1 parent d0393b3 commit 9924b26

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/settings.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,16 @@ to get a ``Server`` instance.
7676

7777
SCOPES
7878
~~~~~~
79-
A dictionnary mapping each scope name to its human description.
79+
A dictionary mapping each scope name to its human description.
80+
81+
DEFAULT_SCOPES
82+
~~~~~~~~~~~~~~
83+
A list of scopes that should be returned by default.
84+
This is a subset of the keys of the SCOPES setting.
85+
By default this is set to '__all__' meaning that the whole set of SCOPES will be returned.
86+
.. code-block:: python
87+
88+
DEFAULT_SCOPES = ['read', 'write']
8089
8190
READ_SCOPE
8291
~~~~~~~~~~

0 commit comments

Comments
 (0)