【问题标题】:adfs with subdomain not working带有子域的 adfs 不起作用
【发布时间】:2013-09-17 14:07:16
【问题描述】:

我需要使用 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 的帮助或参考链接。

【问题讨论】:

  • 当我使用通配符 ssl 证书和 makecert 时它工作了

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


【解决方案1】:

当我将通配符 ssl 证书与 makecert 一起使用时,它起作用了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-12
    • 2017-10-12
    • 2017-06-25
    相关资源
    最近更新 更多