Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Feature request: "--browser" flag for "cf login"

Abierto
#1,898 5 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 3 días

@a-b ya está trabajando en esto.

Desde el 1/10/2024.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

product-improvement

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 --browser which 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-browser which 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

Lenguaje dominante
Go
Estrellas
1.9k
Forks
989
Merge medio
4 d 15 h
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de cloudfoundry/cli

Todos los issues de cloudfoundry/cli

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.