Skip to content

💡 feat: bk auth login should have a fallback if the port on localhost is inaccessible. #835

@Qapf

Description

@Qapf

Is your feature request related to a problem?

When using the bk cli on a remote host, localhost isn't the computer where a browser is available. Trying to complete the bk auth login experience will fail because the port in question can't reach the invocation of the cli

Describe the solution you'd like.

Mirroring aws sso login, terraform login and other apps, fall back to a copy-and-paste experience.

Display the token value on a landing page the browser visits if the call to localhost fails and let me paste the token into the terminal.

Describe alternatives you've considered.

You can use lsof to find the port in question that bk has decided to use and via ssh forward the port, but that's fiddly and requires the environment to support port forwarding.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions