You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,12 +166,16 @@ Enjoy!
166
166
The BornHack website can act as an OIDC IDP. You are welcome to use it for your projects.
167
167
168
168
169
-
### OIDC User Claims
169
+
### OIDC Scopes and User Claims
170
+
The website has a view to inspect which OIDC user claims are returned when using the various claim scopes. It can be accessed at https://bornhack.dk/profile/oidc/
171
+
172
+
173
+
### OIDC User Claims Source Code
170
174
171
175
The supported standard and custom OIDC user claims can be seen in `bornhack/oauth_validators.py`https://github.com/bornhack/bornhack-website/blob/master/src/bornhack/oauth_validators.py
172
176
173
177
174
-
### OIDC Scopes
178
+
### OIDC Scopes Source Code
175
179
176
180
Supported oauth2 scopes are divided into standard OIDC claim scopes, custom OIDC claim scopes, and API scopes. The current list of supported scopes can be seen in the `OAUTH2_PROVIDER["SCOPES"]` dict in `bornhack/settings.py`https://github.com/bornhack/bornhack-website/blob/master/src/bornhack/settings.py
<pclass="lead">When using BornHack as an IDP (logging into other sites using your BornHack account) you can control which user claims are returned by asking for one or more of the following claim scopes:</p>
15
+
<p><ul>
16
+
{% for scope in all_scopes %}
17
+
<li><code>{{ scope }}</code></li>
18
+
{% endfor %}
19
+
</ul></p>
20
+
<p>Note: In addition to this list the default <code>openid</code> scope is available (it is part of the standard) and must always be included when asking for a jwt.</p>
21
+
<pclass="lead">This form allows you to see which OIDC user claims are returned for your user with any combination of scopes.</p>
0 commit comments