Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-672

Global Header displays 'Guest' as user name when used with OIDC auth

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.5.2
    • 1.5.0
    • UI
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      = Fixed incorrect user name display in Profile dropdown

      Resolved an issue where the Profile drop-down in the Global Header displayed "Guest" instead of the logged-in user's name when using OIDC authentication. The drop-down now correctly shows the user's display name by checking `spec.profile.displayName`, then `metadata.title`, and now falling back to the name shown on the Profile card in the Settings page if neither is available.
      Show
      = Fixed incorrect user name display in Profile dropdown Resolved an issue where the Profile drop-down in the Global Header displayed "Guest" instead of the logged-in user's name when using OIDC authentication. The drop-down now correctly shows the user's display name by checking `spec.profile.displayName`, then `metadata.title`, and now falling back to the name shown on the Profile card in the Settings page if neither is available.
    • Bug Fix
    • Done
    • RHDH F&UI plugins 3274
    • Customer Facing

      Description of problem:

      It seems that when we're using OIDC authentication in our setup the ProfileDropdown component in the Global Header doesn't display the username but it says 'Guest' instead.

      Prerequisites (if any, like setup, operators/versions):

      • RHDH 1.5.1
      • OIDC Authentication
      • Using the built-in LDAP plugin as our catalog provider (@backstage/plugin-catalog-backend-module-ldap)

      Steps to Reproduce

      1. Setup the Global Header with the ProfileDropdown in RHDH 1.5.1
      2. Use OIDC for authentication
      3. Configure the LDAP catalog provider (our configuration is available here, and displayName attribute is mapped)

      Actual results:

      When user logs in he sees the 'Guest' name appear in the profile section of the global header, despite the fact that his name is properly displayed in other places such as the catalog.

      Expected results:

      The user's name should be displayed in the ProfileDropdown component.

      Reproducibility (Always/Intermittent/Only Once):{}

      Always when the OIDC auth is used, GitHub seemed to work well.

      Build Details:

      RHDH Version: 1.5.1
      Backstage Version: 1.35.1
      Upstream: https://github.com/redhat-developer/rhdh/tree/release-1.5 @ 2b96ca61 Midstream: https://gitlab.cee.redhat.com/rhidp/rhdh/-/commits/rhdh-1.5-rhel-9 @ 8a4792c7
      Build Time: 2025-03-27T01:03:49Z

      Additional info (Such as Logs, Screenshots, etc):

       

      Acceptance Criteria:

      1. The user's name should be displayed in the ProfileDropdown component.
      2. E2e tests should be updated/added in RHDH to cover this case.

              dsantra12 Debsmita Santra
              skosina@redhat.com Simon Kosina
              RHIDP - Frontend Plugins & UI
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: