-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
None
-
None
-
False
-
-
False
-
None
-
None
-
None
-
None
Summary
Implemented a new --no-browser flag for the oc login --web command that allows users to print the authorization URL instead of automatically opening it in a browser.
Changes Made
- Added --no-browser flag to login command (feature-gated behind OC_ENABLE_WEB_LOGIN_NO_BROWSER)
- Modified login examples to include the new flag usage
- Updated validation logic to ensure -
no-browsercan only be used with -web - Enhanced URL handling to print URL with instructions when --no-browser is specified
- Added comprehensive test coverage for the new functionality
Files Modified
- pkg/cli/login/login.go - Added flag definition and validation
- pkg/cli/login/loginoptions.go - Implemented URL handling logic
- pkg/cli/login/loginoptions_test.go - Added test cases for validation and behavior
Related Issue
This story implements functionality related to CNTRLPLANE-1537