Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

OAuth2 token 401Unauthorized

Adam Eldda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 14, 2021
Hi, Everybody :).
I tried to connect to confluence cloud using OAuth2:
I send a post request to https://auth.atlassian.com/oauth/token and succeed to get the access_token :
This is a POST request body:
{
"grant_type": "authorization_code",
"client_id": "xxxxx",
"client_secret": "xxxxx",
"code":"xxxx",
"redirect_uri":"xxxx"
}
The problem when I used to send GET Request and I add the Bearer {token} for example https://MY_API.atlassian.net/wiki/rest/api/content/
using postman
The response is :
<!DOCTYPE html>
<html lang="en">

 

<head>
<meta charset="utf-8">
<meta name="description" content="Encountered a 401 - Unauthorized error while loading this page.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Atlassian Cloud Notifications - Page access unauthorized</title>
<link rel="stylesheet" href="/_edge/resources/aui-prototyping.css">
<style>
body {
background: #fff;
}

 

main {
margin: auto;
padding-top: 120px;
text-align: center;
}

 

.suggestion {
font-size: 16px;
color: rgb(94, 108, 132);
width: 350px;
padding-top: 20px;
margin: auto;
}
</style>
</head>

 

<body>
<main>
<img
src="/_edge/resources/images/error-generic.svg"
alt="error icon"
width="120"
/>
<h2>
There was a problem accessing this content
</h2>
<p class="suggestion">
Encountered a 401 - Unauthorized error while loading this page.
</p>
</main>
</body>

 

</html>
I need your help :)
Thanks :).

1 answer

1 vote
MaxW
January 28, 2016

Hello Chayim,

yes we have a confluence integration of two factor authetification since 4th january. You can find it https://marketplace.atlassian.com/plugins/de.syracom.confluence.plugins.securelogin/server/overview

Best Regards,
Max

Michal Kubát
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 14, 2016

Hello, 

Is there any discount while buying a JIRA plugin version and Confluence version also?

Thanks

Michal Kubat

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events