滚动浏览SSO页面

时间:2018-07-03 11:40:24

标签: curl single-sign-on onelogin

我想用curl命令行测试SSO身份验证[我使用OneLogin作为IDP], 但是我不知道如何运行curl请求以通过身份验证页面

  

curl -L -c cookie.txt -d“ LoginName = mylogin” -d“ password = mypassword”   https://example.com curl -b cookie.txt https://example.com

在此示例中,https://example.com是使用OneLogin IDP保护的页面的链接

对于第二个请求,我收到了页面:

<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="linkttoIDP">here</a>.</p>
</body></html>

您是否有通过命令行通过sso的想法?

提前谢谢

0 个答案:

没有答案