Skip to content

Commit

Permalink
update owin side (#2078)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyf19 authored Feb 11, 2023
1 parent 905eb0d commit cdfaae7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Microsoft.Identity.Web.OWIN/AppBuilderExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,14 @@ public static IAppBuilder AddMicrosoftIdentityWebApp(
var tokenAcquisition = tokenAcquirerFactory?.ServiceProvider?.GetRequiredService<ITokenAcquisitionInternal>();
var msIdentityOptions = tokenAcquirerFactory?.ServiceProvider?.GetRequiredService<IOptions<MicrosoftIdentityOptions>>();
var result = await (tokenAcquisition!.AddAccountToCacheFromAuthorizationCodeAsync(
new AuthCodeRedemptionParameters(
new string[] { options.Scope },
context.Code,
string.Empty,
context.ProtocolMessage.GetParameter(ClaimConstants.ClientInfo),
codeVerifier,
msIdentityOptions?.Value.DefaultUserFlow)).ConfigureAwait(false);
msIdentityOptions?.Value.DefaultUserFlow,
context.ProtocolMessage.DomainHint))).ConfigureAwait(false);
HttpContextBase httpContext = context.OwinContext.Get<HttpContextBase>(typeof(HttpContextBase).FullName);
httpContext.Session.Add(ClaimConstants.ClientInfo, context.ProtocolMessage.GetParameter(ClaimConstants.ClientInfo));
context.HandleCodeRedemption(result.AccessToken, result.IdToken);
Expand Down

0 comments on commit cdfaae7

Please sign in to comment.