Uploaded image for project: 'Red Hat OpenShift Control Planes'
  1. Red Hat OpenShift Control Planes
  2. CNTRLPLANE-1537

Enable headless browser authentication for oc login command

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • HyperShift
    • None
    • Enable headless browser authentication for oc login command
    • None
    • 0% To Do, 100% In Progress, 0% Done
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None
    • None

      This epic aims to improve the oc login command by enabling authentication in headless environments where direct browser automation is not possible. Currently, the --web flag opens a browser automatically, which doesn't work in CI/CD systems, remote servers, or containerized environments.

       

      This enhancement will allow users to authenticate via web browser flows while running oc in environments without direct browser access, by printing the authorization URL that can be visited on another device while maintaining the callback server locally.

       

      Acceptance Criteria:

      • Test that oc login --web --no-browser prints the authorization URL without opening a browser
      • Test that the callback server remains active and receives the authentication response
      • Demonstrate that login completes successfully when the URL is visited in an external browser
      • Given a headless environment when oc login {}web{-} -no-browser is executed then authentication can be completed via external browser access
      • Sits behind a feature flag

              asegurap1@redhat.com Antoni Segura Puimedon
              asegurap1@redhat.com Antoni Segura Puimedon
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: