Return 404 JSON for oauth-protected-resource discovery probes.
Stop 302ing Claude well-known checks to /login without advertising OAuth. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -16,7 +16,9 @@ export default defineEventHandler((event) => {
|
||||
path === '/login' ||
|
||||
// Claude MCP discovery — never 302 to /login (JSON 404 handlers serve these).
|
||||
path === '/.well-known/oauth-authorization-server' ||
|
||||
path === '/.well-known/openid-configuration'
|
||||
path === '/.well-known/openid-configuration' ||
|
||||
path === '/.well-known/oauth-protected-resource' ||
|
||||
path.startsWith('/.well-known/oauth-protected-resource/')
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user