Hi,
We use OKTA for SSO. So far I am logging into OKTA no problem with CURL and getting the Token back. Now I am not sure when I use basic authentication for confluence if I use:
username:oktatoken or username:password
naturally these are both base64_encoded.
It seems if I use either combination that I get the 401 error.
I've been dealing with this too, and I'm just as stumped.
The only workaround that I've found so far has been to steal a JSESSIONID cookie from my browser and add it as an HTTP header to the request in curl as a cookie header. e.g.
curl --header "cookie: JSESSIONID=ABCDEFGHIJKLMNOP;" https://confluence.company.com
I thought at first that the old X-Atlassian-token: no-check header would work, but that doesn't appear to cut it either.
Generating my own JSESSIONID from a prior HTTP request hasn't worked for me so far, even though a response to the Confluence base URL with basic authentication headers does include a JSESSIONID set-cookie in the response headers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.