Skip to content

Commit 6f637cf

Browse files
sharpninjaclaude
andcommitted
Add mcp-web redirect URIs for McpServer.Web on ports 39983/39984
The mcp-web IdentityServer client only had localhost:7147 redirect URIs. McpServer.Web runs on 39983 (HTTPS) and 39984 (HTTP) and needs /signin-oidc callback registered to complete OIDC code flow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 869a2e4 commit 6f637cf

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/McpServer.Support.Mcp/Identity/IdentityServerConfig.cs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,21 @@ public static IEnumerable<DuendeClient> GetClients(IdentityServerOptions options
7272
AllowedGrantTypes = GrantTypes.Code,
7373
RequirePkce = true,
7474
RequireClientSecret = false,
75-
RedirectUris = { "http://localhost:7147/auth/callback", "https://localhost:7147/auth/callback" },
76-
PostLogoutRedirectUris = { "http://localhost:7147/", "https://localhost:7147/" },
77-
AllowedCorsOrigins = { "http://localhost:7147", "https://localhost:7147" },
75+
RedirectUris =
76+
{
77+
"http://localhost:7147/auth/callback", "https://localhost:7147/auth/callback",
78+
"https://localhost:39983/signin-oidc", "http://localhost:39984/signin-oidc",
79+
},
80+
PostLogoutRedirectUris =
81+
{
82+
"http://localhost:7147/", "https://localhost:7147/",
83+
"https://localhost:39983/", "http://localhost:39984/",
84+
},
85+
AllowedCorsOrigins =
86+
{
87+
"http://localhost:7147", "https://localhost:7147",
88+
"https://localhost:39983", "http://localhost:39984",
89+
},
7890
AllowedScopes = { "openid", "profile", "email", "roles", options.ApiScopeName },
7991
AllowOfflineAccess = true,
8092
},

0 commit comments

Comments
 (0)