go-vikunja / vikunja

Mirror of vikunja from https://code.vikunja.io/api
GNU Affero General Public License v3.0
1.02k stars 70 forks source link

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

Open baltitenger opened 6 days ago

baltitenger commented 6 days ago

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

baltitenger commented 4 days ago

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...

kolaente commented 3 days ago

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