Add `Challenge` method to `ChallengeAccountController`.

pull/17227/head
maliming 2 years ago
parent 09e8ac309e
commit 0b0d3c4984
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4

@ -76,4 +76,11 @@ public abstract class ChallengeAccountController : AbpController
: ForbidSchemes
));
}
[HttpGet]
public virtual async Task<ActionResult> Challenge(string returnUrl = "", string returnUrlHash = "")
{
await HttpContext.SignOutAsync();
return Challenge(new AuthenticationProperties { RedirectUri = GetRedirectUrl(returnUrl, returnUrlHash) }, ChallengeAuthenticationSchemas);
}
}

Loading…
Cancel
Save