Skip to content

SSO profile picture and display name are not set for users signing in through a confidential OIDC client #35674

Closed

Description

@mohityadav766

Affected module

Authentication / Security

Describe the bug

With SSO set up as a confidential (server-side) OIDC client, users who sign in get neither a profile picture nor a display name from the identity provider. The avatar shows only an initial, and the name shown is the login name (jdoe), not the provider's name or its given and family names.

On this flow the server completes sign-in, so it is the one that has to apply the provider's profile claims. It applies neither:

  • Display name. On the default principal-claims flow (emailClaim unset), the server resolves the provider's display name (name, or given_name + family_name) and then drops it. feat(ui): support displayName extraction from user when login #25623 added the sync and Mcp oauth #25391 removed it, so 1.12.4 and every later release ship without it.
  • Picture. No code reads the standard OIDC picture claim on the server, and the callback page hands the browser no picture. Pictures only work for public clients, where the browser saves them.
  • The browser makes the name worse. After a server-driven login, the UI saves the username it was handed (the name redirect parameter) as the user's display name, if the account has none.
  • A login can erase the stored profile. The principal-claims path loads the user with only id,roles,teams and saves that copy back when a login promotes an admin or assigns a team from claims, which erases the stored profile.

To Reproduce

  1. Configure an OIDC provider that issues name / given_name / family_name and picture for the profile scope (for example Google), with clientType: confidential and emailClaim left unset.
  2. Sign in as a new user, or as an existing user who has no display name.
  3. Open the user menu, or call GET /api/v1/users/loggedInUser.

Observed: displayName is empty or equal to the login name, and profile.images is absent.

Expected behavior

displayName is the provider's name (or given + family name) and profile.images.image is the provider's picture, as they are for public clients. A display name the user chose in OpenMetadata is kept, and a token without a picture keeps the stored one.

OpenMetadata version

1.12.4 and later, including main

Additional context

The email-first flow (emailClaim set) already syncs the display name, but not the picture.

Activity

  1. added
    bug
    on Oct 17, 2026
  2. added a commit that references this issue on Oct 17, 2026
    9e60b90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    • Status
      Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions