Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 'auth when you only have CLI' once again #6

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

snickell
Copy link

@snickell snickell commented Aug 1, 2023

  • We used to have the ability to auth with Google OAuth "out of band" from CLI-only setups like remote ssh or docker containers. ood=>out of band=>generated url can be opened on another computer's browser=>if you only have CLI you need this). No special HTTPS server running on same localhost as the web browser was required.
  • Google sunset "oob" support last year (reason: used in phishing scams): https://developers.google.com/identity/protocols/oauth2/resources/oob-migration
  • The closest we can come (intentionally on GOOGs security part) requires adding an additional step: a port forward between the desktop computer running Chrome and the server/container running the aws-google instance. This is easily setup in docker-compose or skaffold+k8s situations, but its harder to setup if roll your own (you could use ssh port forwarding).
  • The UX is basically the same for the end user, but the caller of aws-google (outside this library's black box) will have to solve the problem of making the cli-only aws-google server available on a local port on the browser desktop computer).

@snickell snickell marked this pull request as draft August 1, 2023 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants