2013-11-21 35 views
0

在ASP.Net Web API服務的上下文中,我嘗試連接到SharePoint STS以讀取SharePoint用戶的安全聲明。如何使用WSTrustChannelFactory連接到SharePoint STS

用戶使用基於表單的身份驗證向SharePoint 2013進行身份驗證。

我與Sharepoint站點位於同一個域,因此我可以訪問共享點使用的FedAuth cookie。

我想使用System.ServiceModel.Security.WSTrustChannelFactory製作一個安全令牌的請求,但我不知道我應該用什麼作爲WSTrustChannelFactory構造函數的參數。

我正在尋找一些驗證,我嘗試的方法是合理的,以及我應該如何使用WSTrustChannelFactory。

注:

的STS的地址可在http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc

回答

0

在此,我決定,我試圖使用SharePoint STS的方式,它不是爲進一步閱讀(這是一個依靠黨的STS)。相反,我使用Thinktecture Identity Server作爲身份提供者實施身份驗證,並使用該身份驗證SharePoint和我的Web API服務。