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.
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 theprovider.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 theemail
attribute.