Skip to content

Commit

Permalink
Fix intermittent redirects during external auto-login
Browse files Browse the repository at this point in the history
Fix #17219
  • Loading branch information
MikeAlhayek committed Dec 11, 2024
1 parent 4ab7c34 commit 754fa08
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ public ExternalLoginFormEvents(
_httpContextAccessor = httpContextAccessor;
}

public override Task LoggedInAsync(IUser user)
{
var tempData = _tempDataDictionaryFactory.GetTempData(_httpContextAccessor.HttpContext);
tempData.Remove(ExternalLoginAutoRedirectKeyName);

return Task.CompletedTask;
}

public override async Task<IActionResult> LoggingInAsync()
{
if (!_externalLoginOptions.UseExternalProviderIfOnlyOneDefined)
Expand Down

0 comments on commit 754fa08

Please sign in to comment.