Skip to content

Commit 4d35f57

Browse files
replace API_ADMIN_TOKEN_CLAIMS with API_ADMIN_CLAIMS in doc
1 parent 7e7757c commit 4d35f57

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/source/developers/settings.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ Errors
779779

780780
* ``401`` - a write without authentication.
781781
* ``403`` - a write by a non-administrator. If no admin claim filter is configured
782-
(``API_ADMIN_TOKEN_CLAIMS`` unset) then no user is an admin and the message says
782+
(``API_ADMIN_CLAIMS`` unset) then no user is an admin and the message says
783783
so.
784784
* ``404`` - unknown resource, or unknown content.
785785
* ``409`` - deleting content a ui still references, moving referenced content
@@ -793,13 +793,13 @@ Errors
793793
Administrator claims
794794
--------------------
795795

796-
``API_ADMIN_TOKEN_CLAIMS`` maps a claim path to a list of regular expressions. The
796+
``API_ADMIN_CLAIMS`` maps a claim path to a list of regular expressions. The
797797
environment variable takes comma-separated ``path:pattern`` pairs, and a bare
798798
entry is shorthand for the ``roles`` path::
799799

800-
API_ADMIN_TOKEN_CLAIMS=roles:admin
801-
API_ADMIN_TOKEN_CLAIMS=admin # the same thing
802-
API_ADMIN_TOKEN_CLAIMS=groups:^admins$,admin # both paths
800+
API_ADMIN_CLAIMS=roles:admin
801+
API_ADMIN_CLAIMS=admin # the same thing
802+
API_ADMIN_CLAIMS=groups:^admins$,admin # both paths
803803

804804
A configured path the token does not carry simply does not match: the flat
805805
``roles`` claim is consulted **only** for the bare-list form or an explicit

0 commit comments

Comments
 (0)