You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to use the GraphServiceClient with a TokenCredential and a HttpClient.
Describe the solution you'd like
An extra constructor that has the following signature
new GraphServiceClient(HttpClient httpClient TokenCredential tokenCredential, string BaseUrl, string[] scopes);
it should function as the current constructor new GraphServiceClient(HttpClient httpClient, IAuthenticationProvider provider, string BaseUrl);
Describe alternatives you've considered
Creating a wrapper around the TokenCredential and have it implement the IAuthenticationProvider
Additional context
GraphServiceClientgraphServiceClient=options.Credentialis not null?newGraphServiceClient(options.Credential,RequiredScopes,"https://graph.microsoft.com/beta")//cannot set the HttpClient here.:newGraphServiceClient(httpClient,publicClient,"https://graph.microsoft.com/beta");
The text was updated successfully, but these errors were encountered:
MartinM85
added a commit
to MartinM85/msgraph-sdk-dotnet
that referenced
this issue
Aug 18, 2023
Is your feature request related to a problem? Please describe.
I want to use the
GraphServiceClient
with a TokenCredential and a HttpClient.Describe the solution you'd like
An extra constructor that has the following signature
new GraphServiceClient(HttpClient httpClient TokenCredential tokenCredential, string BaseUrl, string[] scopes);
it should function as the current constructor
new GraphServiceClient(HttpClient httpClient, IAuthenticationProvider provider, string BaseUrl);
Describe alternatives you've considered
Creating a wrapper around the TokenCredential and have it implement the IAuthenticationProvider
Additional context
The text was updated successfully, but these errors were encountered: