2012-09-14 115 views
1

用于对SharePoint应用程序访问者进行身份验证的Idp需要用于控制内容的自定义查询字符串参数。在进入SharePoint的STS之前,我可以使用http模块附加参数,但在到达adfs之前将其删除。在提琴手它看起来像这样:将查询字符串参数传递给SharePoint中的ADFS

这里是最后一个GET在SharePoint和查询字符串参数/ _trust有

GET /_trust/default.aspx?trust=ADFS01&ReturnUrl=/abc/_layouts/Authenticate.aspx?Source=%2Fabc&Source=/abc&whr=https%3A%2F%2Fwww.customidp.com%2FBrandedSTS%2F&parametercode=abc HTTP/1.1 

trust  ADFS01 
ReturnUrl /abc/_layouts/Authenticate.aspx?Source=/abc 
Source  /abc 
whr  https://www.customidp.com/BrandedSTS/ 
parametercode abc 

但GET到ADFS最终放弃它。

GET /adfs/ls/?wa=wsignin1.0&wtrealm=urn%3awww%3aportal%3acom&wctx=https%3a%2f%2fwww.portal.com%2fabc%2f_layouts%2fAuthenticate.aspx%3fSource%3d%2fabc&whr=https%3a%2f%2fwww.customidp.com%2fBrandedSTS%2f HTTP/1.1 

wa wsignin1.0 
wtrealm urn:www:portal:com 
wctx https://www.portal.com/abc/_layouts/Authenticate.aspx?Source=/abc 
whr https://www.customidp.com/BrandedSTS/ 

我想知道如果任何人的方式来获得SharePoint的STS沿任何查询字符串参数或者HTTP模块可以被添加到STS来完成这个过程知道。

回答

1

因此,由于代码“abc”包含在wctx参数中,我们最终使用RegEx在Global.asax中将其抓取出来,并将其附加到我们的STS的url。

相关问题