I am trying to figure out how to get a browser cookie that can be sent as a Header using curl to the rest API of a flask application. If I login using the browser it’s /login page redirects me to Okta, I sign in, and it redirects me back as authenticated. I can get the session cookie from the browser and use that to run commands against an API using curl.
What I haven’t been able to fiigure out is how to get that browser session cookie using curl since it redirects to Okta. Any help? Is there a better way to go about this?