Skip to content

Commit 5c07bca

Browse files
authored
Merge pull request #19 from Beyond-Better/staging
Fix oauth endpoint for well-known resource
2 parents 56d0ebf + a386e81 commit 5c07bca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@beyondbetter/bb-mcp-server",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "Comprehensive library for building Deno-based MCP servers",
55
"license": "MIT",
66
"copyright": "2025 - Beyond Better <charlie@beyondbetter.app>",

src/lib/server/OAuthEndpoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ export class OAuthEndpoints {
573573
// RFC 9728: If this is a resource-specific metadata request, add the resource field
574574
if (isProtectedResourceMetadata && path.startsWith('oauth-protected-resource/')) {
575575
const resourcePath = '/' + path.substring('oauth-protected-resource/'.length);
576-
const url = new URL(request.url);
576+
const url = reconstructOriginalUrl(request);
577577
const resourceUrl = `${url.protocol}//${url.host}${resourcePath}`;
578578

579579
// Add resource field to metadata for RFC 9728 compliance

0 commit comments

Comments
 (0)