Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

OKTA - Basic Authentication Failure - Reason : AUTHENTICATED_FAILED

Mike Griffin December 2, 2020

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.

1 answer

0 votes
Jonny Carter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 29, 2021

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events