Browse Source
Merge pull request #17227 from abpframework/ChallengeAccountController
Add `Challenge` method to `ChallengeAccountController`.
pull/17229/head
liangshiwei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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); |
|
|
|
} |
|
|
|
} |
|
|
|
|