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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.7.0
    • 1.5.0
    • UI
    • None
    • RHDH F&UI plugins 3273, 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:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: