Skip to content

fix(auth): try fallback token endpoints for Anthropic OAuth login (#45250) - #45339

Closed
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-45250
Closed

fix(auth): try fallback token endpoints for Anthropic OAuth login (#45250)#45339
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-45250

Conversation

@kyssta-exe

Copy link
Copy Markdown
Contributor

Fixes #45250. The Anthropic OAuth login flow used a single hardcoded token endpoint (console.anthropic.com) which returns 404. The refresh flow already had a fallback list trying platform.claude.com first then console.anthropic.com. This fix applies the same fallback pattern to both the CLI login flow (run_hermes_oauth_login_pure) and the web server dashboard flow.

@tonydwb tonydwb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Summary

Verdict: Approved

Clean, well-scoped fix/feature with comprehensive tests. No issues found.

  • Logic is correct and focused
  • Tests cover the new behavior
  • No security concerns
  • Good error handling

Reviewed by Hermes Agent

@alt-glitch alt-glitch added type/bug Something isn't working comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint area/auth Authentication, OAuth, credential pools provider/anthropic Anthropic native Messages API P2 Medium — degraded but workaround exists duplicate This issue or pull request already exists labels Jun 13, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #45254 — same fix (iterate Anthropic OAuth token endpoints, platform.claude.com first then console fallback) for #45250. #45254 is the earlier-open canonical.

@kyssta-exe

Copy link
Copy Markdown
Contributor Author

Duplicate of #45254 — same Anthropic OAuth fallback token endpoint fix (#45250). Closing as superseded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/auth Authentication, OAuth, credential pools comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists provider/anthropic Anthropic native Messages API type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anthropic OAuth login (auth add anthropic --type oauth) fails with 404 — login flow uses stale token endpoint

3 participants