Owin挑战触发了DNN的第二个意图

时间:2014-12-18 15:57:18

标签: forms-authentication dotnetnuke owin openid-connect mixed-authentication

我已经为DNN创建了一个带有混合身份验证的自定义登录模块:1)通过ADFS进行身份验证。 2)使用常规表单身份验证进行身份验证一切正常,除了:

protected void Adfs_Click(object sender, EventArgs e)
{
    HttpContext.Current.GetOwinContext()
                .Authentication.Challenge(new AuthenticationProperties { RedirectUri = redirectUrl },
                    OpenIdConnectAuthenticationDefaults.AuthenticationType);
}

第一次点击重新加载页面,并且第二次总是有效。我已尝试停用this post suggest等表单身份验证,但因为我正在使用DNN,我无法做到这一点。

我也测试在Page_Load上触发事件并且有效,但是我想允许DNN本地用户能够直接登录到DNN(主机用户)......所以我无法在那里进行挑战任

有关如何应对挑战的任何帮助都适用于第一次点击?

提前致谢。

0 个答案:

没有答案