I tried this and had problems. I experienced the same issue of remote filename has no length. Where did you find the documentation for the okta/auth endpoint? When I plugged in the sessionid from my browser and added the cookie 'splunkbase_cookied_policy_accepted=true' it then worked. But the sid and SSOID combination with the additional cookie would not work. Also the script needed if [ "$1" == "1" ] on line 53 to work correctly.
... View more