protocol 2.0.0 + resource 3.0.0: code-only interaction, connection-only resource tokens - #28
Merged
Merged
Conversation
The agent composes {interaction_endpoint}?code= from the issuer's published
metadata, so the header no longer has to carry url=. buildRequirementHeader
emits url only when given; parseRequirementHeader requires code alone.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012hgeZuY5n9QXZiG3pLACPb
createResourceToken: scope is REQUIRED only when a token will be issued;
connectionOnly mints the POST /connections shape (interaction_code, account,
no scope, no r3). interactionCode replaces the nested interaction {url, code}
claim. InteractionManager emits requirement=interaction with code only;
interactionUrl is deprecated. buildAAuthHeader('interaction') takes code
with url optional.
Dependents in the workspace (agent, fetch, mcp-openclaw) move to
@aauth/protocol ^2.0.0 so the workspace link resolves; not published here.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012hgeZuY5n9QXZiG3pLACPb
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Section A of aauth-mcp/ONBOARDING-PLAN-2.md.
requirement=interactionneeds onlycode;urlis optional on build and parse. The recipient composes{interaction_endpoint}?code=from the issuer's published metadata.createResourceToken:scopeREQUIRED only when a token will be issued;connectionOnlymints thePOST /connectionsshape (interaction_code,account, noscope, nor3);interactionCodereplaces the nestedinteraction: {url, code}claim.InteractionManageremits the code-only header;interactionUrldeprecated.agent,fetch,mcp-openclaw) move to@aauth/protocol ^2.0.0so the workspace link resolves. They are not bumped or published.Lockfile edited by hand per CLAUDE.md.
npm testat the root: 778 passed, 1 skipped.Not merged, not published from the session: the local npm token is dead (
npm whoami→ 401).🤖 Generated with Claude Code
https://claude.ai/code/session_012hgeZuY5n9QXZiG3pLACPb