Feature request: "--browser" flag for "cf login"
Maintainer thường phản hồi trong vòng 1 ngày
@a-b đang làm issue này rồi.
Từ ngày 1/10/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Context
Single sign-on flow is fragile depending on terminal emulator used by user.
Some users, running cf login --sso are given a link, which is copy-and-pasteable into a web browser; more commonly, users use their terminal emulator to click the link. This link can sometimes be truncated to domain.suffix/pa or passcod, etc due to line-wrapping, or other issues.
These problems are to do with the terminal emulator, and so are not fixable by CF CLI, however the CLI could provide more ergonomic ways for getting a passcode.
Concourse's CLI fly has a --browser / -b flag which performs the flow automatically, by opening the browser which, in turn, redirects the user to a local port. This may be overkill however.
I propose either implementing the --browser flag via Fly, or alternatively provider an --open-browser flag which opens the passcode URL, obviating the need for a user to copy/paste the link.
The --sso-passcode flag is useful, but does not solve the problem described.
What's the user value of this feature request?
Operators of Cloud Foundry would be able to document a less fragile way of signing in, either by using the --browser flow or the --open-browser flag to automatically link users to the correct page.
Who is the functionality for?
This could be used by any user who uses single sign-on to log in.
How often will this functionality be used by the user?
Whenever the user logs in.
Who else is affected by the change?
This would be a non-breaking change
Is your feature request related to a problem? Please describe.
Users semi-regularly report that SSO is not working, because their terminal emulator does not play nicely with CF CLI output.
Describe the solution you'd like
One of, depending on preferences of product management:
As a user, I want to be able to run
cf login --sso --browserwhich automatically conducts the browser login flow, with a local redirection, so that I don't have to copy and paste.
As a user, I want to be able to run
cf login --sso --open-browserwhich automatically opens the passcode page in my browser, so that copy-and-pasting the link is more ergonomic, and less fragile
Describe alternatives you've considered
Writing a CF Plugin instead
- Ngôn ngữ chính
- Go
- Star
- 1.9k
- Fork
- 989
- Merge trung bình
- 1 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudfoundry/cli
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
cloudfoundry/cli#3866 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
cloudfoundry/cli#3863 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
cloudfoundry/cli#3851 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add zsh shell completionĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
cloudfoundry/cli#3794 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
cloudfoundry/cli#3787 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cloudfoundry/cli
Issue tương tự
-
Project submission: 5diveĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
slavakurilyak/awesome-ai-agents#710 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`renderLinkedIssues` overshoots its byte budget: unresolved and omitted lists are never boundedĐang mởagent-butler-finding agent-research-recommend bug ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
jordansmall/spindrift#4614 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
weaviate/weaviate-go-client#485 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Auth server panics in GetProjectById when FindUsersByUID returns an errorCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
litmuschaos/litmus#5641 ·
Maintainer thường phản hồi trong vòng 6 ngày