Accessing deep links with a script while Okta SSO is enabled

New Contributor II

I wrote a script that follows @BrysonTyrrell's method to access Jamf resources that are not exposed by the API as explained on his blog: It works very well, and I want to begin using it in production to save me a LOT of manual clicking to capture a monthly list of data values unavailable to the API.

Unfortunately, I am running into a problem in a dev environment where Okta SSO is enabled. Instead of returning the requested resource, I hit an Okta redirect page:

<html xmlns="" xml:lang="en">
    <body onload="document.forms[0].submit()">
                <strong>Note:</strong> Since your browser does not support JavaScript,
                you must press the Continue button once to proceed.
        <form action="https&#x3a;&#x2f;&#x2f;;app&#x2f;jamfsoftwareserver&#x2f;[redacted]&#x2f;sso&#x2f;saml" method="post">
<input type="hidden" name="RelayState" value="&#x2f;iOSConfigurationProfiles.html&#x3f;id&#x3d;10&amp;o&#x3d;r&amp;side-tabs&#x3d;General"/>                
<input type="hidden" name="SAMLRequest" value=redacted/>                
                    <input type="submit" value="Continue"/>

I've seen this in a browser before and can simply click the "Continue" button to get to the requested resource, but I don't know how to do that with my script. Has anyone else run into this?