Skip to content

Blazor Identity Pages - Inifnite Redirect Loop when adding second external provider #51950

@FaeyUmbrea

Description

@FaeyUmbrea

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When using the current (8.0-rc2) scaffold for the new Blazor Identity Pages trying to add another external login to an existing account results in an infinite redirect loop.
The problem appears to be that the call to "RedirectManager.RedirectToCurrentPageWithStatus" does not purge the action from the redirect, causing "OnGetLinkLoginCallbackAsync" to repeatedly call itself, fail because there is no context, and loop back into itself until the user aborts.
The backoffice tasks of adding the login actually works fine.

Expected Behavior

Being sent back to the page with what ever Status is given in the redirect.

Steps To Reproduce

  1. Create a Blazor Project with the new Blazor Identity Pages.
  2. Add two external login providers.
  3. Log in with one of them
  4. Try to connect the other

Exceptions (if any)

No response

.NET Version

8.0.0-rc2

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-server-auth

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions