-
Epic
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
Enable headless browser authentication for oc login command
-
None
-
0% To Do, 100% In Progress, 0% Done
-
False
-
-
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