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
It would be nice if one could configure it so when logging in with OIDC is reads the username field rather than email field.
Edit: Biggest reason is if my OIDC users want to share their bookmarks, they'd be able to do that without sharing their email address with the world (or just other users if not sharing publicly).
The text was updated successfully, but these errors were encountered:
57194
changed the title
OIDC: Configure Field for Username
OIDC: Option for Username instead of Email
Aug 7, 2024
# Using Python 3 and Django 1.11+, usernames can contain alphanumeric
# (ascii and unicode), _, @, +, . and - characters. So we normalize
# it and slice at 150 characters.
returnunicodedata.normalize("NFKC", email)[:150]
I don't understand how the email parameter is being passed at all, but my proposal is basically an additional config option, like OIDC_USERNAME_CLAIM or something that takes a string with the desired scope. If unset, the default should of course be email for the current behavior.
Authelia, for instance, offers a lot of claim options:
It would be nice if one could configure it so when logging in with OIDC is reads the username field rather than email field.
Edit: Biggest reason is if my OIDC users want to share their bookmarks, they'd be able to do that without sharing their email address with the world (or just other users if not sharing publicly).
The text was updated successfully, but these errors were encountered: