Browse Source
Add `Challenge` method to `ChallengeAccountController`.
pull/17227/head
maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
7 additions and
0 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Authentication/ChallengeAccountController.cs
|
|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
|