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

oauth error - autoscaler runners

Elliott Fallar
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!
November 15, 2024

ive chosen to use basic auth for my controller, and it works fine. i want to use the same authorization method for the jobs - but it will only allow me to use oauth client id and secret.

 

even when i create oauth creds - im still met with the same error

[2024-11-15 20:27:00,832] An error occurred whilst updating runner state to "ONLINE". org.springframework.web.reactive.function.client.WebClientResponseException$BadRequest: 400 Bad Request from POST https://auth.atlassian.com/oauth/token at org.springframework.web.reactive.function.client.WebClientResponseException.create(WebClientResponseException.java:217) Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: Error has been observed at the following site(s): *__checkpoint ⇢ 400 from POST https://auth.atlassian.com/oauth/token [DefaultWebClient]

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 18, 2024

Hi @Elliott Fallar,

Welcome to the community.

Could you confirm whether you're using an App password for your basic credentials?

Regards,
Mark C

Elliott Fallar
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!
November 19, 2024

Hi Mark!

 

I am running the controller and cleaner with basic auth, however - i've tried vairous ways to get the jobs to use the same mechanism (basic auth) to no avail. Therefore, they are using app password with repository:read, account:read, runner:write as per https://bitbucket.org/bitbucketpipelines/runners-autoscaler/src/d51f6a8868cfd0127da25287f1409a3a3e635b6c/

My guess is the callback url is not correct - ive used a variation of atlassian callback endpoints ive found online:
https://bitbucket.org/oauth/callback
https://bitbucket.org/site/oauth2/authorize

to name a few.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events