deploy: 1f4ae2f9eb
This commit is contained in:
@@ -3349,16 +3349,20 @@ match particular values in the OIDC userinfo. The requirements can be listed und
|
||||
<code>attribute_requirements</code> as shown here:</p>
|
||||
<pre><code class="language-yaml">attribute_requirements:
|
||||
- attribute: family_name
|
||||
value: "Stephensson"
|
||||
one_of: ["Stephensson", "Smith"]
|
||||
- attribute: groups
|
||||
value: "admin"
|
||||
# If `value` or `one_of` are not specified, the attribute only needs
|
||||
# to exist, regardless of value.
|
||||
- attribute: picture
|
||||
</code></pre>
|
||||
<p><code>attribute</code> is a required field, while <code>value</code> and <code>one_of</code> are optional.</p>
|
||||
<p>All of the listed attributes must match for the login to be permitted. Additional attributes can be added to
|
||||
userinfo by expanding the <code>scopes</code> section of the OIDC config to retrieve
|
||||
additional information from the OIDC provider.</p>
|
||||
<p>If the OIDC claim is a list, then the attribute must match any value in the list.
|
||||
Otherwise, it must exactly match the value of the claim. Using the example
|
||||
above, the <code>family_name</code> claim MUST be "Stephensson", but the <code>groups</code>
|
||||
above, the <code>family_name</code> claim MUST be either "Stephensson" or "Smith", but the <code>groups</code>
|
||||
claim MUST contain "admin".</p>
|
||||
<p>Example configuration:</p>
|
||||
<pre><code class="language-yaml">oidc_providers:
|
||||
|
||||
Reference in New Issue
Block a user