OpenID: Name is reset to username on every login #2035

Closed
opened 2026-03-22 13:52:03 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @baltitenger on GitHub (Nov 16, 2024).

Description

As the title says. This is confusing because vikunja still allows the user to change their name, which will persist until the next time they do a fresh login. (Also, I think it should use the name field instead of preferred_username for the initial value of the user's display name)

Vikunja Version

v0.24.4

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

Originally created by @baltitenger on GitHub (Nov 16, 2024). ### Description As the title says. This is confusing because vikunja still allows the user to change their name, which will persist until the next time they do a fresh login. (Also, I think it should use the `name` field instead of `preferred_username` for the initial value of the user's display name) ### Vikunja Version v0.24.4 ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
GiteaMirror added the bug label 2026-03-22 13:52:03 -05:00
Author
Owner

@baltitenger commented on GitHub (Nov 17, 2024):

Hmm, apparently it does use the name field but the OpenID provider I'm using (forgejo) uses the username in the name field for the id_token but not for the userinfo response...

@baltitenger commented on GitHub (Nov 17, 2024): Hmm, apparently it does use the `name` field but the OpenID provider I'm using (forgejo) uses the username in the name field for the id_token but not for the userinfo response...
Author
Owner

@kolaente commented on GitHub (Nov 18, 2024):

Looks like the solution here is to disable changing the name in user settings.

@kolaente commented on GitHub (Nov 18, 2024): Looks like the solution here is to disable changing the name in user settings.
Author
Owner

@kolaente commented on GitHub (Jan 21, 2025):

Fixed in 090dd4b2f6, please check with the next unstable build (should be ready for deployment in ~45min, also on try).

@kolaente commented on GitHub (Jan 21, 2025): Fixed in 090dd4b2f60078a84052591a5f3bed8907da21e3, please check with the next unstable build (should be ready for deployment in ~45min, also on [try](https://try.vikunja.io)).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#2035