子域无效的adfs

时间:2013-09-17 14:07:16

标签: asp.net subdomain wif global-asax adfs2.0

我需要使用sts进行身份验证。我已经完成了poc,它正在通过身份验证并重新回到领域。但我们的应用程序是针对不同租户具有不同子域的多租户应用程序。在验证丢失子域信息后重定向时,如client1.mediahub.orgclient2.mediahub.org

尝试实施代码

protected void Application_Start(object sender, EventArgs e)
{
   FederatedAuthentication.ServiceConfigurationCreated += OnServiceConfigurationCreated;
}
Protected void OnServiceConfigurationCreated(object sender, ServiceConfigurationCreatedEventArgs e)
{
    FederatedAuthentication.WSFederationAuthenticationModule.RedirectingToIdentityProvider        += WSFederationAuthenticationModule_RedirectingToIdentityProvider;
}
protected void WSFederationAuthenticationModule_RedirectingToIdentityProvider(object sender, RedirectingToIdentityProviderEventArgs e)
{
      // this method parses the HTTP_HOST and gets the first subdomain
       string realm = HttpContext.Current.Request.Url.ToString();

        e.SignInRequestMessage.Realm = realm;

}

但在重新定向后,在身份验证后在adfs处发出异常。

我想要一些帮助或链接到有关使用子域实现wif的参考资料。

1 个答案:

答案 0 :(得分:0)

当我使用带有makecert的通配符ssl证书

时,它有效
相关问题