Skip to content

Commit c99edba

Browse files
MongoCalebajhuh-mdbsarahsimpers
authored
Add useAuthorizationClaim field info. (#5258)
* Add useAuthorizationClaim * fix formatting and add version * one last formatting tweak * review suggestions * DOCS-16389 query plan cache subdocument (#5217) * DOCS-16389 query plan cache subdocument * * * IF feedback * clarity * nit * move to compatibility * * * wording * wording * (DOCS-16390) You can't specify WT encryption options in createCollection (#5260) * (DOCS-16390) You can't specify WT encryption options in createCollection * Includes change from tech review * DOCS-16363 Document killedDueToMaxTimeMSExpired under serverStatus (#5193) * DOCS-16363 Document killedDueToMaxTimeMSExpired under serverStatus * add to TOC * wording * build error * (DOCSP-34349) Adds release notes and compatibility changes for 7.2 (#5242) * DOCS-16363 Document killedDueToMaxTimeMSExpired under serverStatus (#5193) * DOCS-16363 Document killedDueToMaxTimeMSExpired under serverStatus * add to TOC * wording * build error * Includes PM external review changes * Revert "Includes PM external review changes" This reverts commit 0263ebe646848bf840c75b414815d3daa660e9fc. * Includes changes from PM review * Includes copy review changes --------- Co-authored-by: Alison Huh <[email protected]> * rewording * staging to check formatting * cleaning up the process * formatting foo * more review rewording and table formatting * still trying to get the table format correct... * funwith table formatting... * table formatting... --------- Co-authored-by: Alison Huh <[email protected]> Co-authored-by: Sarah Simpers <[email protected]>
1 parent c7d453b commit c99edba

File tree

1 file changed

+45
-3
lines changed

1 file changed

+45
-3
lines changed

source/includes/fact-oidc-providers.rst

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. list-table::
22
:header-rows: 1
3-
:widths: 20 25 35 20
3+
:widths: 20 18 42 20
44

55
* - Field
66

@@ -86,11 +86,53 @@
8686

8787
- string
8888

89+
* - ``useAuthorizationClaim``
90+
91+
- Optional
92+
93+
- Determines if the ``authorizationClaim`` is required. The default value is
94+
``true``.
95+
96+
If the ``useAuthorizationClaim`` field is set to ``true``, the server requires
97+
an ``authorizationClaim`` for the identity provider's config. This is the
98+
default behavior.
99+
100+
If the ``useAuthorizationClaim`` field is set to ``false``, the
101+
``authorizationClaim`` field is optional (and ignored if provided).
102+
Instead, the server does the following:
103+
104+
- Searches the token for a claim whose name is listed in the
105+
``principalNameClaim`` field. This is typically named ``sub``. For
106+
example:
107+
108+
``sub: "[email protected]"``
109+
110+
- Constructs the internal username by concatenating the ``authNamePrefix``,
111+
a forward slash (`/`), and the contents of the claim identified by
112+
``principalNameClaim`` within the access token. For example, with a
113+
``authNamePrefix`` field value of "mdbinc", the internal username is:
114+
115+
``mdbinc/[email protected]``
116+
117+
- Looks for the user with this username and authorize the client with the
118+
roles::
119+
120+
.. code-block:: javascript
121+
122+
{ user: "mdbinc/[email protected]",
123+
db: "$external" }
124+
125+
.. versionadded:: 7.2
126+
127+
- boolean
128+
89129
* - ``authorizationClaim``
90130

91-
- Required
131+
- Conditional
92132

93-
- Claim extracted from access token that contains MongoDB role names.
133+
- Required, unless ``useAuthorizationClaim`` is set to ``false``.
134+
135+
Claim extracted from access token that contains MongoDB role names.
94136

95137
- string
96138

0 commit comments

Comments
 (0)