Repository navigation
Conversation
The server now reports display_name and picture for OIDC sessions (from the ID token or the provider's UserInfo endpoint). Use them in the user menu: the full name comes first, then the existing username, email and access key fallbacks, and the IdP avatar replaces the theme placeholder. The avatar is accepted only as an absolute https URL, loads without a referrer, and falls back to the theme avatar when it fails to load. The profile page keeps showing the username under its "Username" label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
After an OIDC login the user menu showed the internal identity hash instead of the user's name, and always the theme placeholder avatar. Server PR rustfs/rustfs#9600 now returns
display_nameandpicture(from the ID token or the provider's UserInfo endpoint) on/accountinfoand/account/info. This PR uses them:display_name, then the existingusername,emailand access key fallbacks (resolveAccountMenuName).resolveAccountAvatarUrl). It is accepted only as an absolutehttpsURL, loads withreferrerPolicy="no-referrer", and the existingonErrorfallback switches back to the theme avatar.resolveAccountDisplayName, so its "Username" label still shows the username.AccountInfoinhooks/use-account.tsgains the two optional fields.Without the server change the fields are absent and the menu behaves exactly as before.
Type of Change
Testing
Tested commit e7cb41c with pnpm 12.3.4 and Node 24:
New tests in
tests/lib/account-display.test.tscover the full-name preference, the blank-name fallback, and the avatar URL filter (rejects missing,http:,javascript:, relative and malformed values). The source-pattern tests intests/lib/account-surface.test.jsandtests/lib/ui-layout-source.test.jswere updated to the new resolver names and now also assert the avatar fallback andno-referrer.Not done: manual testing against a running server with an OIDC provider.
Checklist
Related Issues
Depends on rustfs/rustfs#9600 for the data; safe to merge independently.
Screenshots (if applicable)
Not included yet: this needs a server build with rustfs/rustfs#9600 and a configured OIDC provider. I will add before/after screenshots of the user menu once that environment is available.
Additional Notes
Loading the avatar sends a request from the browser to the IdP's image host;
no-referrerkeeps the console URL out of that request.🤖 Generated with Claude Code