[auth] Scenarios for scope selection (#36)
* wip scope change * rm useless bool * fix-me: package changes for linking * negative test * negative test for multiple scopes * fix displays of warnings * wip step-up * negative test for step up auth * move warning into main request flow * clean up more checks * cleanup step-up scenario * cleanup and simplify * cleanup middleware * inline negative tests * inline the other test * refactor logging and inlining for standalone execution too * skip pending tests
This commit is contained in:
parent
253ede03ad
commit
5c151133bb
1 changed files with 1074 additions and 186 deletions
|
|
@ -40,5 +40,17 @@ export const SpecReferences: { [key: string]: SpecReference } = {
|
|||
MCP_ACCESS_TOKEN_USAGE: {
|
||||
id: 'MCP-Access-token-usage',
|
||||
url: 'https://modelcontextprotocol.io/specification/draft/basic/authorization#access-token-usage'
|
||||
},
|
||||
MCP_SCOPE_SELECTION_STRATEGY: {
|
||||
id: 'MCP-Scope-selection-strategy',
|
||||
url: 'https://modelcontextprotocol.io/specification/draft/basic/authorization#scope-selection-strategy'
|
||||
},
|
||||
MCP_SCOPE_CHALLENGE_HANDLING: {
|
||||
id: 'MCP-Scope-challenge-handling',
|
||||
url: 'https://modelcontextprotocol.io/specification/draft/basic/authorization#scope-challenge-handling'
|
||||
},
|
||||
MCP_AUTH_ERROR_HANDLING: {
|
||||
id: 'MCP-Auth-error-handling',
|
||||
url: 'https://modelcontextprotocol.io/specification/draft/basic/authorization#error-handling'
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue