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

REST API authorization not working

Eugene Podosenov
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!
August 25, 2021

I have a Bamboo server 8.0, it is installed on my own server.

I try to authorization in the REST API.

1. I generated a Personal access token in user settings.

2. Then I try to get https://{BAMBOO}/rest/api/latest/result/DUC-BDS-1526?expand=jiraIssues with the header "Authorization: Bearer {TOKEN}"

3. I got this message: {"message":"Authentication anonymousUser has NO permissions to the domain object com.atlassian.bamboo.project.DefaultProject@10da5","status-code":403}

The same situation when I try to use Basic auth

1. URL: https://{BAMBOO}/rest/api/latest/result/DUC-BDS-1526?expand=jiraIssues&os_authType=any

2. Header: Basic {base64 login:password}

3. The same error message: {"message":"Authentication anonymousUser has NO permissions to the domain object com.atlassian.bamboo.project.DefaultProject@10da5","status-code":403}

What am I doing wrong? I tried to install Bamboo 7.2, and I had the same problem.

1 answer

1 vote
Eugene Podosenov
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!
August 25, 2021

Sorry, I found the problem. My nginx removes all Authorization headers.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events