File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments