Confluence Oauth Authentication


I looked confluence doc. for oauth in that link and .it seems we can connect confluence with oauth take accestoken . But there is no example and doc. not explain good. I want create tokens and connect confluence with that. Can ı take information oauth for XML-RPC and SOAP APIs or JSON-RPC APIs. How can ı create tokens and connect my confluence? For example for jira: I want like that.

8 answers

This widget could not be displayed.

For anyone still looking for an answer, Ken has the right idea with his example above.  The base URL for OAuth for Confluence appears to be as follows:

And the endpoints are the same as JIRA:




While all of the other information about how to use OAuth is exactly as documented for JIRA, I still cannot find the official documentation on the Confluence base URL and endpoints.

This widget could not be displayed.

Additionally, it matters how you send the OAuth requests.

For the entire token-based OAuth dance, be sure to send the OAuth fields in the POST, not the HEADER or in the Query String.

To GET/POST/PUT pages, etc., always send the OAuth fields in the Query String and NOT in the POST.

Again, these kinds of things should really be documented, but they are most definitely not!

Thank you John, thank you so much! I wasted hours figuring out why the **** my token get rejected all the time.

For anyone who has the same problem:
JIRA needs the oauth signature properties in the HEADER, Confluence (same company...) in the GET/POST as described.


This widget could not be displayed.

I've created an example for using OAuth with Confluence in PHP here:

or, if you prefer Bitbucket (and hey, we're on an Atlassian site, right?):

This widget could not be displayed.

Does not anyone use confluence oauth? I want to enter with access tokens to confluence. How can I do that?

This widget could not be displayed.
Joe Clark Atlassian Team Apr 03, 2013

This examples for JIRA should would work the same with Confluence.

It doesn't. The authorize URL doesn't work in Confluence.

This widget could not be displayed.

Can you explain with an example how can ı connect with conflence. I use jirashell for jira API. And I use that code : . I want to connect with accesstoken to confluence and make something. for example edit a page with access token. Have you any example? it can be any programming language. I want like that but this is XML-RPC

This widget could not be displayed.

Hi Mesut -

I think I tried something similar to you a while back (Previous discussion here --

I finally got arount to trying Joseph's suggestion in this thread, and it did the trick. And I've published the code hacks here:

Hope that helps at least point you in another possible direction.


This widget could not be displayed.

I have OAuth1.0a code written for Confluence but like above, I cannot locate the URL that I should be calling.

See for what seems to be related.

Using an OAuth1.0a library

client = new OAuthRequest
Method = "GET",
Type = OAuthRequestType.RequestToken,
SignatureMethod = OAuthSignatureMethod.HmacSha1,
ConsumerKey = String.Format("{0}", REDACTED),
ConsumerSecret =REDACTED
RequestUrl = "",
Version = "1.0a",
Realm = ""

I get null for the token,

  • is the URL right?
  • is the realm right?
  • is the signature method correct?






Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

140 views 16 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you