Skip to content

Commit d9fbfe6

Browse files
committed
test2
1 parent 327ff17 commit d9fbfe6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

BankApi.Mcp/Builder.MCP.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ public static async Task<IServiceCollection> AddMCPService(this IServiceCollecti
1818
services.AddScoped(sp =>
1919
{
2020
return new OAuthAuthorizationCodeAuthentication(
21-
clientId: "",
22-
authorizationEndpoint: "",
23-
tokenEndpoint: "",
24-
scope: "",
25-
secureTokenStore: null,
26-
mcpContextAccessor: null
21+
clientId: "b6997777-3799-4c55-b78a-4ce96e3d959c",
22+
authorizationEndpoint: $"https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/authorize",
23+
tokenEndpoint: $"https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token",
24+
scope: "b6997777-3799-4c55-b78a-4ce96e3d959c/.default",
25+
secureTokenStore: sp.GetRequiredService<ISecureTokenStore>(),
26+
mcpContextAccessor: sp.GetRequiredService<IMcpContextAccessor>(),
27+
redirectUri: $"{mcpServerBaseUrl}/auth/callback",
28+
usePkce: true
2729
);
2830
});
2931

0 commit comments

Comments
 (0)