Skip to content

feat(auth): support OAuth Bearer login alongside PAT#158

Draft
aprimakina wants to merge 1 commit into
mainfrom
feat/oauth-bearer
Draft

feat(auth): support OAuth Bearer login alongside PAT#158
aprimakina wants to merge 1 commit into
mainfrom
feat/oauth-bearer

Conversation

@aprimakina
Copy link
Copy Markdown
Contributor

@aprimakina aprimakina commented May 20, 2026

Adds OAuth Bearer auth alongside the existing PAT path:

  • PKCE browser login → stores oauth2.Token (access + refresh + expiry) in the keyring, no PAT minted
  • API client dispatches on stored credential shape: Bearer for OAuth, Basic for PAT
  • Bearer client auto-refreshes via gateway's grant_type=refresh_token and persists rotated tokens back to the keyring
  • tiger auth logout POSTs to /auth/logout to revoke server-side
  • tiger auth status branches on AuthInfo.Type (apiKey | oauth)
  • PAT flow (--public-key/--secret-key) unchanged

@aprimakina aprimakina force-pushed the feat/oauth-bearer branch from a2d5415 to 74fdcb8 Compare May 20, 2026 13:38
@aprimakina aprimakina self-assigned this May 20, 2026
@aprimakina aprimakina force-pushed the feat/oauth-bearer branch from 74fdcb8 to 04e3662 Compare May 20, 2026 16:02
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@aprimakina aprimakina force-pushed the feat/oauth-bearer branch from 04e3662 to 986a433 Compare June 2, 2026 11:37
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