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

server: when registering a user, set user name if OIDC identity contains one #537

Merged
merged 1 commit into from Aug 11, 2016
Merged

server: when registering a user, set user name if OIDC identity contains one #537

merged 1 commit into from Aug 11, 2016

Conversation

wyattanderson
Copy link
Contributor

When automatically registering a user from an IP that provides
a DisplayName, set it on the created user so that JWT we create
contain a meaningful name field.

Added new test and ran existing ones.

@@ -120,6 +120,23 @@ func (m *UserManager) Disable(userID string, disabled bool) error {
return nil
}

func (m *UserManager) SetDisplayName(usr user.User, displayName string) error {
tx, err := m.begin()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to check the error here

When automatically registering a user from an IP that provides
a `DisplayName`, set it on the created user so that JWT we create
contain a meaningful `name` field.
@ericchiang
Copy link
Contributor

lgtm!

@ericchiang ericchiang merged commit ac51813 into dexidp:master Aug 11, 2016
@wyattanderson wyattanderson deleted the register-display-name branch January 27, 2021 15:34
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.

None yet

2 participants