-
-
Notifications
You must be signed in to change notification settings - Fork 6
Make claim rules visible to clients and operators #1193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -256,6 +256,11 @@ class SOURCEMETA_ONE_AUTHENTICATION_EXPORT Authentication { | |
| // Whether the provider honours the claims request parameter, which is the | ||
| // standard way to ask for a claim no standard scope carries | ||
| bool claims_parameter_supported{false}; | ||
| // The claims the provider says it may be able to supply. OpenID Connect | ||
| // Discovery Section 3 calls this list non-exhaustive, so a claim missing | ||
| // from it is worth reporting and never worth refusing over, and a provider | ||
| // publishing none says nothing at all | ||
| std::vector<std::string> claims_supported{}; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1: This member changes the binary layout of the public Prompt for AI agents |
||
| }; | ||
|
|
||
| // What the named interactive policy's provider says about itself, retrieved | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| { | ||
| "resource": "https://schemas.example.com/self/v1/mcp", | ||
| "authorization_servers": [ "https://login.example.com" ], | ||
| "scopes_supported": [ "mcp:invoke" ], | ||
| "bearer_methods_supported": [ "header" ] | ||
| } | ||
| ], | ||
|
|
@@ -33,6 +34,17 @@ | |
| "format": "uri" | ||
| } | ||
| }, | ||
| "scopes_supported": { | ||
| "description": "The scope values used in authorization requests to request access to this endpoint, taken from the claim rules of the policies that gate it. Absent where no policy names one, since RFC 9728 admits no empty array here", | ||
| "type": "array", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Severity: low 🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||
| "minItems": 1, | ||
| "uniqueItems": true, | ||
|
cubic-dev-ai[bot] marked this conversation as resolved.
|
||
| "items": { | ||
| "description": "A single scope token, whose character set RFC 6749 Section 3.3 defines to exclude the space that separates them, along with the quote and backslash", | ||
| "type": "string", | ||
| "pattern": "^[\\x21\\x23-\\x5B\\x5D-\\x7E]+$" | ||
| } | ||
| }, | ||
| "bearer_methods_supported": { | ||
| "description": "How a token is presented, which here is only the Authorization header", | ||
| "const": [ "header" ] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.