Skip to content

Commit da84e72

Browse files
committed
fix: update OAuth protected resource path to include '/mcp' for consistency across exercises
1 parent 605ee8f commit da84e72

File tree

19 files changed

+19
-19
lines changed

19 files changed

+19
-19
lines changed

exercises/01.discovery/03.solution.pr/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default {
7878
return handleOAuthAuthorizationServerRequest()
7979
}
8080

81-
if (url.pathname === '/.well-known/oauth-protected-resource') {
81+
if (url.pathname === '/.well-known/oauth-protected-resource/mcp') {
8282
return handleOAuthProtectedResourceRequest(request)
8383
}
8484

exercises/02.init/01.problem.authenticate/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default {
8080
return handleOAuthAuthorizationServerRequest()
8181
}
8282

83-
if (url.pathname === '/.well-known/oauth-protected-resource') {
83+
if (url.pathname === '/.well-known/oauth-protected-resource/mcp') {
8484
return handleOAuthProtectedResourceRequest(request)
8585
}
8686

exercises/02.init/01.solution.authenticate/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default {
7979
return handleOAuthAuthorizationServerRequest()
8080
}
8181

82-
if (url.pathname === '/.well-known/oauth-protected-resource') {
82+
if (url.pathname === '/.well-known/oauth-protected-resource/mcp') {
8383
return handleOAuthProtectedResourceRequest(request)
8484
}
8585

exercises/02.init/02.problem.params/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default {
7979
return handleOAuthAuthorizationServerRequest()
8080
}
8181

82-
if (url.pathname === '/.well-known/oauth-protected-resource') {
82+
if (url.pathname === '/.well-known/oauth-protected-resource/mcp') {
8383
return handleOAuthProtectedResourceRequest(request)
8484
}
8585

exercises/02.init/02.solution.params/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default {
7979
return handleOAuthAuthorizationServerRequest()
8080
}
8181

82-
if (url.pathname === '/.well-known/oauth-protected-resource') {
82+
if (url.pathname === '/.well-known/oauth-protected-resource/mcp') {
8383
return handleOAuthProtectedResourceRequest(request)
8484
}
8585

exercises/03.auth-info/01.problem.introspect/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default {
8181
return handleOAuthAuthorizationServerRequest()
8282
}
8383

84-
if (url.pathname === '/.well-known/oauth-protected-resource') {
84+
if (url.pathname === '/.well-known/oauth-protected-resource/mcp') {
8585
return handleOAuthProtectedResourceRequest(request)
8686
}
8787

exercises/03.auth-info/01.solution.introspect/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default {
8080
return handleOAuthAuthorizationServerRequest()
8181
}
8282

83-
if (url.pathname === '/.well-known/oauth-protected-resource') {
83+
if (url.pathname === '/.well-known/oauth-protected-resource/mcp') {
8484
return handleOAuthProtectedResourceRequest(request)
8585
}
8686

exercises/03.auth-info/02.problem.error/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default {
8080
return handleOAuthAuthorizationServerRequest()
8181
}
8282

83-
if (url.pathname === '/.well-known/oauth-protected-resource') {
83+
if (url.pathname === '/.well-known/oauth-protected-resource/mcp') {
8484
return handleOAuthProtectedResourceRequest(request)
8585
}
8686

exercises/03.auth-info/02.solution.error/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default {
8080
return handleOAuthAuthorizationServerRequest()
8181
}
8282

83-
if (url.pathname === '/.well-known/oauth-protected-resource') {
83+
if (url.pathname === '/.well-known/oauth-protected-resource/mcp') {
8484
return handleOAuthProtectedResourceRequest(request)
8585
}
8686

exercises/03.auth-info/03.problem.active/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default {
8080
return handleOAuthAuthorizationServerRequest()
8181
}
8282

83-
if (url.pathname === '/.well-known/oauth-protected-resource') {
83+
if (url.pathname === '/.well-known/oauth-protected-resource/mcp') {
8484
return handleOAuthProtectedResourceRequest(request)
8585
}
8686

0 commit comments

Comments
 (0)