File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Microsoft.Owin.Security.OpenIdConnect Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -384,7 +384,8 @@ protected override async Task<AuthenticationTicket> AuthenticateCoreAsync()
384384 ClientSecret = Options . ClientSecret ,
385385 Code = authorizationResponse . Code ,
386386 GrantType = OpenIdConnectGrantTypes . AuthorizationCode ,
387- RedirectUri = properties . Dictionary [ OpenIdConnectAuthenticationDefaults . RedirectUriUsedForCodeKey ]
387+ RedirectUri = properties . Dictionary . ContainsKey ( OpenIdConnectAuthenticationDefaults . RedirectUriUsedForCodeKey ) ?
388+ properties . Dictionary [ OpenIdConnectAuthenticationDefaults . RedirectUriUsedForCodeKey ] : string . Empty ,
388389 } ;
389390
390391 var authorizationCodeReceivedNotification = new AuthorizationCodeReceivedNotification ( Context , Options )
@@ -393,8 +394,7 @@ protected override async Task<AuthenticationTicket> AuthenticateCoreAsync()
393394 Code = authorizationResponse . Code ,
394395 JwtSecurityToken = jwt ,
395396 ProtocolMessage = authorizationResponse ,
396- RedirectUri = properties . Dictionary . ContainsKey ( OpenIdConnectAuthenticationDefaults . RedirectUriUsedForCodeKey ) ?
397- properties . Dictionary [ OpenIdConnectAuthenticationDefaults . RedirectUriUsedForCodeKey ] : string . Empty ,
397+ RedirectUri = tokenEndpointRequest . RedirectUri ,
398398 TokenEndpointRequest = tokenEndpointRequest
399399 } ;
400400 await Options . Notifications . AuthorizationCodeReceived ( authorizationCodeReceivedNotification ) ;
You can’t perform that action at this time.
0 commit comments