に接続することができませんコアサービスに接続しようとしますが、私は次のエラーを取得する:Tridionの2011コアサービス:SSO環境
The HTTP request was forbidden with client authentication scheme 'Anonymous'
Tridionの環境は、SiteMinderのからSSOが設定されています。ここで
は私のコードです:
public static ICoreService2010 GetTridionClient()
{
var binding = new BasicHttpBinding()
{
Name = "BasicHttpBinding_TridionCoreService",
CloseTimeout = new TimeSpan(0, 1, 0),
OpenTimeout = new TimeSpan(0, 1, 0),
ReceiveTimeout = new TimeSpan(0, 10, 0),
SendTimeout = new TimeSpan(0, 1, 0),
AllowCookies = false,
BypassProxyOnLocal = false,
HostNameComparisonMode = HostNameComparisonMode.StrongWildcard,
MaxBufferSize = 4194304, // 4MB
MaxBufferPoolSize = 4194304,
MaxReceivedMessageSize = 4194304,
MessageEncoding = WSMessageEncoding.Text,
TextEncoding = System.Text.Encoding.UTF8,
TransferMode = TransferMode.Buffered,
UseDefaultWebProxy = true,
ReaderQuotas = new System.Xml.XmlDictionaryReaderQuotas()
{
MaxDepth = 32,
MaxStringContentLength = 4194304, // 4MB
MaxArrayLength = 4194304,
MaxBytesPerRead = 4194304,
MaxNameTableCharCount = 16384
},
Security = new BasicHttpSecurity()
{
Mode = BasicHttpSecurityMode.TransportCredentialOnly,
Transport = new HttpTransportSecurity()
{
ClientCredentialType = HttpClientCredentialType.None,
},
Message = new BasicHttpMessageSecurity()
{
ClientCredentialType = BasicHttpMessageCredentialType.UserName
}
}
};
string hostname = ConfigurationManager.AppSettings["TridionUrl"];
string username = ConfigurationManager.AppSettings["TridionUsername"];
hostname = string.Format("{0}{1}{2}",
hostname.StartsWith("http") ? "" : "http://",
hostname,
hostname.EndsWith("/") ? "" : "/");
var endpoint = new EndpointAddress(hostname +
"/webservices/CoreService.svc/basicHttp_2010");
var factory = new ChannelFactory<ICoreService2010>(binding, endpoint);
factory.Credentials.UserName.UserName = username;
return factory.CreateChannel();
}
誰には、Windows以外の認証タイプのコアサービスとの相互作用の経験を持っていますか?
UPDATE:
私は今のエラーを取得:
バインディングのために/webservices/web.configで使用されるべきである何clientCredentialTypeThe HTTP request was forbidden with client authentication scheme 'Basic'.
?
/webservies/web.configのSsoAgentHttpModuleのコメントを外すと、Webサービスで500のエラーが発生するため、SDLはこれをコメントアウトしておくように指示しました。
このモジュールは、CoreServiceが認証スキーム「Basic」で認証するために必要ですか?
/webservices/web.configのSsoAgentHttpModuleのコメントを解除する必要はありません。これは、ルート設定でコメントを外したので、ウェブサイト全体に対して適用されます。適切な(SSO URL)に接続していますか? –