【发布时间】:2020-05-19 04:19:11
【问题描述】:
我尝试了几天,但无法弄清楚,如果有人可以帮助我,将不胜感激。
public void SignIn()
{
// Send an OpenID Connect sign-in request.
if (!Request.IsAuthenticated)
{
//Perform some action if user is successfully authenticated??
HttpContext.GetOwinContext().Authentication.Challenge(new AuthenticationProperties { RedirectUri = "https://localhost:44309/DummyController/DummyAction" }, OpenIdConnectAuthenticationDefaults.AuthenticationType);
}
}
【问题讨论】:
标签: c# asp.net-mvc owin openid-connect