Forum Discussion
Stefan_Klotz
Cumulonimbus
Jun 12, 2014advanced Storefront Monitor (end-to-end test)
Hi,
we have setup a Storefront VS with the standard monitor as mentioned in the deployment guide. This is working fine, but this only checks if the Logon Page is provided correctly. Now the cust...
Stefan_Klotz
Cumulonimbus
Jun 16, 2014Hi again,
please find below an extract from my external monitor script (sorry if the syntax is not optimal, I'm not a bash expert):
Make a request to the Logon Page to get the ASP-SessionID and Csrf-Token Cookie set
curl -kfNsg -c /config/monitors/sf-test_cookies.txt -X POST https://[${ip}]/Citrix/storeWeb/Home/Configuration -H "Host: 10.76.208.21" -H "X-Citrix-IsUsingHTTPS: Yes" -H "X-Requested-With: XMLHttpRequest" -H "Cookie: CtxsDeviceId=WR_GLofrvuW4jFhqo7B4" -H "Content-Length: 0" 2>&1 > /dev/null
Extract the two IDs from the Cookie file
asp_sessionid_line=$(sed -n '5{p;q;}' /config/monitors/sf-test_cookies.txt)
csrf_token_line=$(sed -n '6{p;q;}' /config/monitors/sf-test_cookies.txt)
asp_sessionid=$(echo "${asp_sessionid_line: -24}")
csrf_token=$(echo "${csrf_token_line: -32}")
Make the Logon request with the correct IDs
curl -kfNsg -X POST https://[${ip}]/Citrix/storeWeb/ExplicitAuth/LoginAttempt -H "Host: 10.76.208.21" -H "X-Citrix-IsUsingHTTPS: Yes" -H "X-Requested-With: XMLHttpRequest" -H "Csrf-Token: ${csrf_token}" -H "Cookie: CtxsDeviceId=WR_GLofrvuW4jFhqo7B4; CsrfToken=${csrf_token}; CtxsPluginAssistantState=Done; ASP.NET_SessionId=${asp_sessionid}" -H "Content-Length: 88" --data "username=domain\username&password=password&loginBtn=Log+On&StateContext="
But I'm getting this response:
fail
sessiontimeout
Any idea what's still missing or what I'm doing wrong?
Thank you!
Ciao Stefan 🙂
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
