You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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
curl -u <userid>:<password> -X GET "https://wiki.xxx.dk/rest/api/space?spaceKey=~userid"
The below command provides us data.
curl -u m42713:xxxxxx --header 'Cookie: JSESSIONID=9DZZZZZZZZZZZZZZCCCCCCCCC1' \
-X GET "https://wiki.xxx.dk/rest/api/space?spaceKey=~userid"
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 eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.