feat: add auth-hints extension to streamline scheme-level authentication#1902
Open
alftom wants to merge 1 commit intox402-foundation:mainfrom
Open
feat: add auth-hints extension to streamline scheme-level authentication#1902alftom wants to merge 1 commit intox402-foundation:mainfrom
alftom wants to merge 1 commit intox402-foundation:mainfrom
Conversation
- Described general auth scheme for x402, mainly on HTTP transports - Initial support for two auth method types: oauth2 (Bearer/DPoP) and sign-in-with-x - Defined scheme and acceptIndex hints.
🟡 Heimdall Review Status
|
|
@alftom is attempting to deploy a commit to the Coinbase Team on Vercel. A member of the Team first needs to authorize it. |
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.
Adds the
auth-hintsextension specification (specs/extensions/extension-auth-hints.md).This extension provides scheme-level authentication hints in x402 payment requirements, enabling clients to discover that specific payment schemes require authentication and complete registration/token acquisition before submitting a payment payload — avoiding an unnecessary 401 round trip.
Key points:
oauth2(Bearer/DPoP) andsign-in-with-xschemeandacceptIndexhints for matching auth requirements toaccepts[]entriesWWW-Authenticatewithout any extensionThis was discussed with @erikreppel-cb and @CarsonRoscoe and identified as a priority for enterprise and agent use cases where payment schemes like
deferredrequire client identity verification.Open question for discussion: should servers use
acceptIndex(precise, per-entry),scheme(broad, per-scheme-type), or both for matching auth requirements toaccepts[]?Tests
Spec-only change — no code, no tests. This PR adds a single markdown file.
Checklist