Skip to content

When creating users, use 'preferred_username' if 'user_name' can't be found - #6

Open
avanvucht wants to merge 1 commit into
devopskube:masterfrom
avanvucht:master
Open

When creating users, use 'preferred_username' if 'user_name' can't be found#6
avanvucht wants to merge 1 commit into
devopskube:masterfrom
avanvucht:master

Conversation

@avanvucht

Copy link
Copy Markdown

OpenID Connect specs say the username is 'preferred_username' not 'user_name' so let's go with the latter if we can't find 'user_name'.

This solves an issue where I was getting an error "Unable to create user due to Login cannot be blank" in my Redmine 3.4.3 with no LDAP connection.

…er_name' so let's go with the latter if we can't find 'user_name'
@jcmcken

jcmcken commented Feb 9, 2018

Copy link
Copy Markdown
Contributor

Related to #11. Some providers use nickname but not preferred_username. Maybe a chain of claims needs to be tried.

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