File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,6 @@ public static async Task<IServiceCollection> AddMCPService(this IServiceCollecti
1515 var openApiPath = Path . Combine ( AppContext . BaseDirectory , $ "openapi_{ apiVersion } .json") ;
1616 var tenantId = "b81eb003-1c5c-45fd-848f-90d9d3f8d016" ;
1717
18- services . AddScoped ( sp =>
19- {
20- return new OAuthAuthorizationCodeAuthentication (
21- clientId : "b6997777-3799-4c55-b78a-4ce96e3d959c" ,
22- clientSecret : "fQB8Q~GkKsBaQFKnrTLEGXpRHWejyASJB6ZMGba~" ,
23- authorizationEndpoint : $ "https://login.microsoftonline.com/{ tenantId } /oauth2/v2.0/authorize",
24- tokenEndpoint : $ "https://login.microsoftonline.com/{ tenantId } /oauth2/v2.0/token",
25- scope : "b6997777-3799-4c55-b78a-4ce96e3d959c/.default" ,
26- secureTokenStore : sp . GetRequiredService < ISecureTokenStore > ( ) ,
27- mcpContextAccessor : sp . GetRequiredService < IMcpContextAccessor > ( ) ,
28- redirectUri : $ "{ mcpServerBaseUrl } /auth/callback",
29- usePkce : true
30- ) ;
31- } ) ;
32-
3318 services . AddScoped ( sp =>
3419 {
3520 return new ApiKeyAuthentication (
You can’t perform that action at this time.
0 commit comments