Pull user's 'Full Name' attribute from OAuth source #14694

Closed
opened 2025-11-02 11:20:20 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @Mo0rBy on GitHub (Jul 2, 2025).

Feature Description

I would like to be able to automatically add a user's Full Name attribute from the OAuth source they use to login.

The access token contains this information, but I don't see anywhere in the code that pulls this data and populates the user's Full Name attribute. It looks like it needs to be set manually.
I also checked the config cheatsheet to see if there were any settings that looked like they would do this, and I couldn't see anything.

Thinking about this, it might also be worth doing some value setting hierarchy, so the Full Name attribute is set by the OAuth2 authentication source's token, but if it is manually overwritten by the user, then this takes precedence.

Screenshots

Image

Originally created by @Mo0rBy on GitHub (Jul 2, 2025). ### Feature Description I would like to be able to automatically add a user's Full Name attribute from the OAuth source they use to login. The access token contains this information, but I don't see anywhere in the code that pulls this data and populates the user's Full Name attribute. It looks like it needs to be set manually. I also checked the config cheatsheet to see if there were any settings that looked like they would do this, and I couldn't see anything. Thinking about this, it might also be worth doing some value setting hierarchy, so the Full Name attribute is set by the OAuth2 authentication source's token, but if it is manually overwritten by the user, then this takes precedence. ### Screenshots ![Image](https://github.com/user-attachments/assets/15b05125-a7b1-4fce-b123-78dc9851d3aa)
GiteaMirror added the type/proposal label 2025-11-02 11:20:20 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jul 7, 2025):

-> Refactor OpenIDConnect to support SSH/FullName sync #34978

@wxiaoguang commented on GitHub (Jul 7, 2025): -> Refactor OpenIDConnect to support SSH/FullName sync #34978
Author
Owner

@Mo0rBy commented on GitHub (Jul 7, 2025):

Holy! That was quick!

@Mo0rBy commented on GitHub (Jul 7, 2025): Holy! That was quick!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14694