我可以为3-4个子区域的1个子网站和SSO实现是否具有ADF认证机制? 我正在使用基于索赔的身份验证。我已经配置了ADFS。我有1个WebApplication,并拥有大约12个子区域。住宿代表1个客户。 现在我计划为2个客户实施SSO,并且REST客户端需要与ADFS合作。如果我有2个身份验证提供程序STS&ADFS,则需要与ADFS合作.I将获得

我不希望sso使用此页面,而是应该直接带到没有凭据的SharePoint站点。ADF应该被带到ADFS登录页面.FYI我使用SAML 2.0到SAML 1.1转换为实施SSO

有帮助吗?

解决方案 2

Finally i got it to work :

SPWebApplication app = SPContext.Current.Site.WebApplication;
SPAlternateUrl u = app.AlternateUrls[Request.Url];
SPUrlZone zone = u.UrlZone;
SPIisSettings settings = app.IisSettings[zone];
string components = Request.Url.GetComponents(UriComponents.Query, UriFormat.SafeUnescaped);
string AuthProviderString;
if (flag == 1)
    AuthProviderString = "SAML_STS";
else
    AuthProviderString = "Staging External Users";
foreach (SPAuthenticationProvider provider in settings.ClaimsAuthenticationProviders)
{
    if (string.Compare(provider.DisplayName, AuthProviderString, true, System.Globalization.CultureInfo.CurrentUICulture) == 0
        || string.Compare(provider.ClaimProviderName, AuthProviderString, true, System.Globalization.CultureInfo.CurrentUICulture) == 0)
    {
        string url = provider.AuthenticationRedirectionUrl.ToString();


        SPUtility.Redirect(url, SPRedirectFlags.Default, this.Context, components);
    }
}

http://blog.repsaj.nl/index.php/2010/05/sp2010-creating-a-mixed-mode-login-page-for-claims-based-authentication/

其他提示

Authentication is managed at the web application level only. It is not possible to have sites within the same web application use different authentication providers unless the entire application supports those providers.

Maybe this article will help: http://msdn.microsoft.com/en-us/library/hh237665.aspx

许可以下: CC-BY-SA归因
scroll top