You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi,
I have created an access token using the below-mentioned link
https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/
When I use this access token along with confluence REST API to ge space data the error I receive is
{ "statusCode": 401,
"data": { "authorized": false, "valid": true, "errors": [], "successful": false },
"message":"com.atlassian.confluence.api.service.exceptions.AuthenticationRequiredException: Authentication is required"
}
below mentioned is request object
{
method: 'GET',
url: 'https://<domain>.atlassian.net/wiki/rest/api/space',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
Authorization: 'Bearer <access_token>'
}
}
Can some one please help me with this.
In the authorization section, you need to be using both the token and the user e-mail address that the token was created with. That seems to be missing in what you've given above. You need to pass in a 64 bit encoded version of the e-mail / token pair.
Hi @Warren
I am trying to make an API call using OAuth token and we encode email/API-token in basic authentication.
https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-basic-authentication/
As you said tried passing 64 bit encoded version of the e-mail / OAuth token in header got the following response.
Status: 403 Forbidden.
{ "error": "Failed to parse Connect Session Auth Token"}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.