mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-29 00:07:30 +00:00
fix: advertise no wildcard set scope, note the set URL takes no external issuer token
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e7bce3860f
commit
3ee1b3be77
@@ -250,17 +250,11 @@ fn granting_scopes() -> Vec<String> {
|
||||
.to_vec()
|
||||
}
|
||||
|
||||
/// No `mcp:set:` scope: a client that requests every listed scope would ask for a set by that
|
||||
/// literal name. A set's URL advertises its own.
|
||||
fn supported_scopes() -> Vec<String> {
|
||||
let mut scopes = granting_scopes();
|
||||
scopes.extend(
|
||||
[
|
||||
"mcp:read_only",
|
||||
"mcp:read_run",
|
||||
"mcp:runnables_as_tools",
|
||||
"mcp:set:*",
|
||||
]
|
||||
.map(String::from),
|
||||
);
|
||||
scopes.extend(["mcp:read_only", "mcp:read_run", "mcp:runnables_as_tools"].map(String::from));
|
||||
scopes
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user