We are trying to invoke the Confluence REST API on-premise end point and it looks like it is not sufficient to provide only user id and password to get the content. When we provide a JSESSIONID cookie in the REST API end point as HTTP header then only we get the data.
The question is what could be the reason that we are not able to use userid and password combination as mentioned in the documentation (https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/ ) in consuming REST API from confluence on-premise solution.
For example -
The below command is not giving any data
The below command provides us data.
curl -u m42713:xxxxxx --header 'Cookie: JSESSIONID=9DZZZZZZZZZZZZZZCCCCCCCCC1' \
Hello @Thomas Ladefoged !
As I understand, you are currently trying to authenticate using basic authentication in Confluence On-Premises (Server/Data Center) but is unable to.
I am not entirely sure what is the meaning of “The below command is not giving any data”. Does it mean that:
- Are errors thrown when you try to authenticate?
- Has this worked at some point?
- Do you have some kind of SSO implemented on your instance?
- Are you using userID or username to try and login to the instance?
- Are there entries on your Confluence log file for when you try to login?
Also, here we have some documentation that can help you on this setup:
Let us hear from you!
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events