Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Feat/agent auth http client#180

Merged
91jaeminjo merged 2 commits into
mainfrom
feat/agent-auth-http-client
Mar 19, 2026
Merged

Feat/agent auth http client#180
91jaeminjo merged 2 commits into
mainfrom
feat/agent-auth-http-client

Conversation

@91jaeminjo
Copy link
Copy Markdown
Collaborator

Summary

  • Extend createAgentHttpClient() with getToken and tokenRefresher parameters, composing the full decorator stack (Observable → Authenticated → Refreshing) internally
  • Assert that tokenRefresher requires getToken
  • Add discoverAuthProviders() wrapper that hides HttpTransport from consumers
  • Un-hide TokenRefresher, TokenRefreshResult, TokenRefreshSuccess, TokenRefreshFailure, and TokenRefreshService from the barrel

Stacked on #178.

Test plan

  • dart format . --set-exit-if-changed — no changes
  • dart analyze --fatal-infos — 0 issues
  • dart test test/http/ — 14/14 pass (6 factory + 2 discover + 6 auth)
  • Auth assertion test — tokenRefresher without getToken throws AssertionError
  • Close cascades through full auth decorator stack

🤖 Generated with Claude Code

91jaeminjo and others added 2 commits March 19, 2026 09:20
…rAuthProviders()

Add getToken and tokenRefresher parameters to the HTTP client factory,
composing the full decorator stack (Observable → Authenticated →
Refreshing) internally. Assert that tokenRefresher requires getToken.

Add discoverAuthProviders() wrapper that hides HttpTransport from
consumers. Un-hide TokenRefresher, TokenRefreshResult, TokenRefreshSuccess,
TokenRefreshFailure, and TokenRefreshService from the barrel.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ssary import

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@91jaeminjo 91jaeminjo force-pushed the feat/agent-auth-http-client branch from 50c54a1 to cdd44d5 Compare March 19, 2026 14:20
@91jaeminjo 91jaeminjo merged commit 583bb97 into main Mar 19, 2026
6 checks passed
@91jaeminjo 91jaeminjo deleted the feat/agent-auth-http-client branch March 19, 2026 14:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant