我已经试了好几天了,但是不能弄明白,如果有人能帮到我,我将不胜感激。
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);
}
}发布于 2020-12-17 01:22:48
实现动作RedirectToIdentityProvider
Notifications = new OpenIdConnectAuthenticationNotifications
{
RedirectToIdentityProvider = OnRedirectToIdentityProvider
}
private Task OnRedirectToIdentityProvider(RedirectToIdentityProviderNotification<OpenIdConnectMessage,
OpenIdConnectAuthenticationOptions> arg)
{
throw new NotImplementedException();
}https://stackoverflow.com/questions/60038734
复制相似问题