问题描述
SharePoint环境最近配置了ADFS,用于单点登录和登录.我们需要在Powershell中使用Invoke-webrequest方法创建Warm Up脚本.
SharePoint environment is recently configured with ADFS for single sign on & we need to create Warm Up script using Invoke-webrequest method in powershell.
我必须传递cookie进行身份验证,并管理该会话中的所有cookie并通过SharePoint网站进行身份验证
I have to pass cookies for authentication and with that manage all cookies in that session and get authenticated to the SharePoint site
如何处理这些身份验证
How to handle these authentication
1)../trust/authenticate.aspx?ReturnURl = .../15/authenticate.aspx
1) ../trust/authenticate.aspx?ReturnURl =.../15/authenticate.aspx
2)federation/login.cgi& .../auth.cgi
2) federation/login.cgi & .../auth.cgi
3)sharepoint/sites/default.aspx
3) sharepoint/sites/default.aspx
在此先感谢!!
Thanks in Advance!!!
Vijaivel
推荐答案
以下文章供您参考:
调用ADFSSecu rityTokenReques t
https://gallery.technet.microsoft.com/scriptcenter/Invoke-ADFSSecurityTokenReq-09e9c90c
使用PowerShell请求ADFS安全令牌
以编程方式使用具有基于声明的身份验证和ADFS的Web服务
https: //blog.portiva.nl/2014/12/04/以编程方式使用基于声明的身份验证消费网络服务/
最好的问候,
Dennis
这篇关于SharePoint 2013-使用Invoke-webrequest通过ADFS身份验证为SharePoint网站创建热身脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!