Skip to content

Commit

Permalink
Fixes an issue where the key is not found in the dictionary when call…
Browse files Browse the repository at this point in the history
…ing WithScopes(), WithAppOnly() (#1365)
  • Loading branch information
ThreeSevenths authored Aug 3, 2021
1 parent 8a1c8f4 commit 7fc0499
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static T WithAuthenticationScheme<T>(this T baseRequest, string authentic

private static T SetParameter<T>(T baseRequest, Action<TokenAcquisitionAuthenticationProviderOption> action) where T : IBaseRequest
{
string authHandlerOptionKey = typeof(AuthenticationHandlerOption).ToString();
string authHandlerOptionKey = typeof(AuthenticationHandlerOption).Name;
AuthenticationHandlerOption authHandlerOptions = baseRequest.MiddlewareOptions[authHandlerOptionKey] as AuthenticationHandlerOption ?? new AuthenticationHandlerOption();
TokenAcquisitionAuthenticationProviderOption msalAuthProviderOption = authHandlerOptions?.AuthenticationProviderOption as TokenAcquisitionAuthenticationProviderOption ?? new TokenAcquisitionAuthenticationProviderOption();

Expand Down

0 comments on commit 7fc0499

Please sign in to comment.