Skip to content

feat(auth): allow configurable redirect URI in remote/manual OAuth flow#398

Open
salmonumbrella wants to merge 1 commit intosteipete:mainfrom
salmonumbrella:fix/issue-356-remote-redirect
Open

feat(auth): allow configurable redirect URI in remote/manual OAuth flow#398
salmonumbrella wants to merge 1 commit intosteipete:mainfrom
salmonumbrella:fix/issue-356-remote-redirect

Conversation

@salmonumbrella
Copy link
Contributor

@salmonumbrella salmonumbrella commented Mar 3, 2026

Summary

  • add --redirect-uri to gog auth add for manual/remote OAuth flows
  • thread redirect override through googleauth.AuthorizeOptions
  • use redirect override for remote step 1 URL generation and manual/code exchange when needed
  • preserve state validation behavior and add tests for override/reuse/precedence/invalid input

Testing

  • go test ./internal/googleauth ./internal/cmd
  • go test ./...

Closes #356

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.

OAuth remote flow: allow configurable redirect/callback URL (not fixed localhost:1)

1 participant