Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add provider.oidc.use-preferred-username option to use 'preferred_username' attribute in place of 'email' for OIDC providers #400

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mdusher
Copy link

@mdusher mdusher commented Nov 22, 2024

This might not be desirable for everyone, so I'll leave it up to you if you wish to bring it in.

I'm a Keycloak user and I do not primarily use email addresses as usernames if I can avoid it. I have added an option to override the email attribute with the value of the preferred_username attribute (if it is provided and the provider.oidc.use-preferred-username flag is set.

If the flag is set, and preferred_username is not provided - it will still use the value of the email attribute.

Michael Usher added 2 commits November 22, 2024 14:17
@mazzz1y
Copy link

mazzz1y commented Dec 10, 2024

I think that field should be customizable, and users should be allowed to set any attribute they want, not just "preferred_username" or "email"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants