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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,12 +168,12 @@ The BornHack website can act as an OIDC IDP. You are welcome to use it for your
168
168
169
169
### OIDC User Claims
170
170
171
-
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
171
+
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
172
173
173
174
174
### OIDC Scopes
175
175
176
-
Supported oauth2 scopes are split between 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
176
+
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
field=models.SlugField(blank=True, help_text="When using your BornHack account to login to other sites with OIDC this value is served as the OIDC standard claim 'preferred_username'. You can set this to the username you would prefer to use on remote sites where you login with your BornHack account."),
Copy file name to clipboardExpand all lines: src/profiles/models.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -67,13 +67,18 @@ class Meta:
67
67
help_text="The phonenumber you can be reached on. This field can be updated automatically when registering a DECT number in the phonebook.",
68
68
)
69
69
70
-
# default to near general camping
71
70
location=PointField(
72
71
blank=True,
73
72
null=True,
74
73
help_text="Your location at BornHack. This value is available on public maps.",
75
74
)
76
75
76
+
preferred_username=models.SlugField(
77
+
blank=True,
78
+
max_length=50,
79
+
help_text="When using your BornHack account to login to other sites with OIDC this value is served as the OIDC standard claim 'preferred_username'. You can set this to the username you would prefer to use on remote sites where you login with your BornHack account.",
Copy file name to clipboardExpand all lines: src/profiles/templates/profile_detail.html
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,15 @@ <h4>Your information</h4>
91
91
</td>
92
92
</tr>
93
93
94
+
<tr>
95
+
<td>
96
+
<b>OIDC Preferred Username</b><br/>
97
+
<small>When using BornHack as an IDP this value is available to remote sites with the <code>profile</code> scope. Set this to the username you prefer to use on the remote sites where you login with your BornHack account.</small>
0 commit comments