Skip to content

Commit

Permalink
Fix return URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Jun 8, 2023
1 parent a6179e1 commit 7fa842c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public sealed class CreateAdminInitializer : IInitializable
public CreateAdminInitializer(IServiceProvider serviceProvider, IOptions<MyIdentityOptions> identityOptions)
{
this.serviceProvider = serviceProvider;

this.identityOptions = identityOptions.Value;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private async Task<IActionResult> LoginViewAsync(string? returnUrl, bool isLogin
{
var provider = externalProviders[0].AuthenticationScheme;

var challengeRedirectUrl = Url.Action(nameof(ExternalCallback));
var challengeRedirectUrl = Url.Action(nameof(ExternalCallback), new { returnUrl });
var challengeProperties = SignInManager.ConfigureExternalAuthenticationProperties(provider, challengeRedirectUrl);

// Redirect to the external authentication provider.
Expand Down

0 comments on commit 7fa842c

Please sign in to comment.