Skip to content

feat(login): add headless authentication - #332

Open
caiopizzol wants to merge 1 commit into
amp-labs:mainfrom
caiopizzol:feat/headless-login
Open

feat(login): add headless authentication#332
caiopizzol wants to merge 1 commit into
amp-labs:mainfrom
caiopizzol:feat/headless-login

Conversation

@caiopizzol

Copy link
Copy Markdown
Contributor

What changed

  • adds amp login --headless for remote environments;
  • reads the localhost callback without terminal echo;
  • accepts only the expected Ampersand callback; and
  • points browserless users to the new command.

Why

Remote environments cannot receive the browser's localhost callback directly.

Tested

  • Go test suite, vet, build, and golangci-lint 2.9.0
  • Real Chrome login with a production-configured build
  • Authenticated amp list:projects request
  • Large callback input without truncation

Note

This reuses the existing callback, so it needs no backend change. The CLI hides the pasted value, but the callback remains in browser history.

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.

1 participant