mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 12:24:39 +00:00
fix(core): strip trailing slashes when normalizing auth and MCP resource URLs (#506)
* fix(core): strip trailing slashes when normalizing auth and MCP resource URLs * docs: document BETTER_AUTH_URL in README and quickstart guides * docs: prioritize AWS_ENDPOINT_URL_S3 and clarify applicability to local storage * docs: refine AWS_ENDPOINT_URL_S3 guidance for local storage deployments
This commit is contained in:
@@ -50,6 +50,10 @@ describe('MCP server OAuth 2.1 & Dual Auth', () => {
|
||||
|
||||
it('serves RFC 8414 and RFC 9728 discovery endpoints', async () => {
|
||||
// RFC 9728 Protected Resource Metadata
|
||||
expect(authBaseUrl.endsWith('/')).toBe(false)
|
||||
expect(mcpResource).not.toContain('//mcp')
|
||||
expect(mcpResource.endsWith('/mcp')).toBe(true)
|
||||
|
||||
const resourceMetaRes = await app.request('/.well-known/oauth-protected-resource')
|
||||
expect(resourceMetaRes.status).toBe(200)
|
||||
const resourceMeta = await resourceMetaRes.json()
|
||||
|
||||
Reference in New Issue
Block a user