Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

REST API authorization not working

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

64 views 0 4
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