feat(auth): add OAuth PKCE browser flow by LorrisSaintGenez · Pull Request #198 · algolia/cli
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 29
Merged
feat(auth): add OAuth PKCE browser flow#198
LorrisSaintGenez merged 13 commits intomainfrom
feat(auth): add OAuth PKCE browser flow#198
LorrisSaintGenez merged 13 commits intomainfrom
Conversation
Copy link Copy Markdown
Contributor
Summary
algolia auth login: Browser-based sign-in using OAuth 2.0 Authorization Code + PKCEalgolia auth signup: Same flow, but opens the sign-up page directlyalgolia auth logout: Revoke the tokens, delete the one stored in the keychain- Token storage: Access/refresh tokens persisted in the OS keychain, with automatic refresh
Env. config
ALGOLIA_DASHBOARD_URLALGOLIA_API_URLALGOLIA_OAUTH_CLIENT_IDALGOLIA_OAUTH_SCOPE
Manual testing
Set those value above. If you use it with the local dashboard, set up also ALGOLIA_SEARCH_HOSTS if you want to test indices command.
./algolia auth signup--> should prompt to create a new application (select CA or DE locally)./algolia auth login
LorrisSaintGenez
self-assigned this
LorrisSaintGenez
mentioned this pull request
pipeline1987 approved these changes Mar 18, 2026
8bittitan reviewed Mar 18, 2026
api/dashboard/client.go
Show resolved
Hide resolved
api/dashboard/client.go Show resolved Hide resolved
LorrisSaintGenez added 2 commits
March 18, 2026 08:46
LorrisSaintGenez
requested a review
from 8bittitan
8bittitan approved these changes Mar 18, 2026
LorrisSaintGenez added 8 commits
March 18, 2026 09:038bittitan reviewed Mar 18, 2026
pkg/cmd/auth/login/login.go
Outdated
Show resolved
Hide resolved
pkg/cmd/auth/login/login.go Outdated Show resolved Hide resolved
LorrisSaintGenez
requested a review
from 8bittitan
8bittitan approved these changes Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment