File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Service/GroupMembershipManagement/Common.DependencyInjection Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ public static IServiceCollection AddGraphAPIClient(this IServiceCollection servi
1616 {
1717 var configuration = services . GetService < IConfiguration > ( ) ;
1818 var graphCredentials = services . GetService < IOptions < GraphCredentials > > ( ) . Value ;
19- if ( graphCredentials . AuthenticationType == AuthenticationType . Unknown || graphCredentials . AuthenticationType == default ( AuthenticationType ) )
19+ if ( graphCredentials . AuthenticationType == AuthenticationType . Unknown )
2020 {
21- graphCredentials . AuthenticationType = MapStringToAuthenticationType ( "ClientSecret" ) ;
21+ graphCredentials . AuthenticationType = MapStringToAuthenticationType ( configuration [ "GraphAPI:AuthenticationType" ] ) ;
2222 }
2323 var credential = FunctionAppDI . CreateAuthenticationProvider ( graphCredentials , graphCredentials . AuthenticationType ) ;
2424 return new GraphServiceClient ( credential ) ;
You can’t perform that action at this time.
0 commit comments