Browse Source

Add `Challenge` method to `ChallengeAccountController`.

pull/17227/head
maliming 3 years ago
parent
commit
0b0d3c4984
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 7
      framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Authentication/ChallengeAccountController.cs

7
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);
}
}

Loading…
Cancel
Save