Can't retrieve openidConnect PreferredUsername from User object
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 6.6k
- Forks
- 631
- PR merge metrics
- No merged PRs in 30d
Description
Currently, PreferredUsername is only used as a fallback if NickName is not available. However, I'd like to access it regardless of what NickName is (or isn't) set to.
Ideally, I'd like to see User.Name be preferred_username and User.NickName be "nickname", falling back to "name", falling back to "given_name".
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the User object and the OpenID Connect provider mapping, then trace how PreferredUsername, NickName, name, and given_name are currently assigned. Done means User.Name exposes preferred_username and User.NickName follows the requested nickname, name, and given_name fallback order, with focused coverage for the mapping.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- authentication
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100