質問

サブサイトと3-4サブサイトのSSO実装のADFS認証メカニズムを持つことができますか? 私はクレームベースの認証を使用しています.Iはすでに揃っています.iは1つのWebアプリケーションを持っていて、約12のサブサイトを持っています。 2つのクライアントのSSOを実装することを計画しており、RSTクライアントは2認証プロバイダーSTS&ADFS.Iがある場合はが届きます。

画像の入力ここで

SSOがこのページを使用したくない、代わりに、代わりにSharePointサイトに直接SharePointサイトにアクセスする必要があります.ADFSログインページにアクセスする必要があります。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帰属
所属していません sharepoint.stackexchange
scroll top