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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Access issue in Confluence On premise REST API end point

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"

1 answer

0 votes
Diego Atlassian Team Oct 21, 2020

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:

  1. Are errors thrown when you try to authenticate?
  2. Has this worked at some point?
  3. Do you have some kind of SSO implemented on your instance?
  4. Are you using userID or username to try and login to the instance?
  5. 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!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

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...

59 views 0 3
Read article

Community Events

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

Events near you