You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(auth): load OAuth tokens from keyring for API clients
Fixes bounty issue #1546
After successful OAuth device flow login, the access token is saved to
the system keyring by cortex-login, but the API clients (BackendClient,
CortexClient) were only checking environment variables for auth tokens.
This fix:
- Adds get_auth_token() and has_valid_auth() functions to cortex-login
that retrieve OAuth tokens from the system keyring
- Updates BackendClient::new() to fall back to keyring if env vars are
not set
- Updates CortexClient::new() to load OAuth tokens from keyring
- Adds cortex-login as a dependency to cortex-engine
Now when a user completes OAuth device authorization, the token is
automatically used for API requests without requiring additional
configuration.
0 commit comments