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

API auth client_credentials : error_description

Esteban Parra November 13, 2020

try to get a token , then request a  resource but error happend

 

REQUEST

curl -X POST -u "xxxxx:yyyyyyyyyyyyyyy" https://bitbucket.org/site/oauth2/access_token -d grant_type=client_credentials

 

OUTPUT

{
"error_description": "No callback uri defined for the OAuth client.",
"error": "invalid_request"
}

1 answer

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 16, 2020

Hi Esteban and welcome to the community!

Based on the output you get, it looks that there is no Callback URL set for the OAuth consumer you generated.

You can navigate to the workspace's Settings > OAuth consumers, then select the 3 dots (...) next to the consumer > Edit, set a Callback URL and save your changes.

Please feel free to let me know if this works for you and if you need anything further.

Kind regards,
Theodora

Esteban Parra November 17, 2020

thanks,  you were ritth , the callback URL was missing,  it works fine with gran type  (client_credentials.)

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 20, 2020

That's good to hear and you're very welcome, thank you for the update.

Prabhu Chilukuri February 5, 2024

@Theodora Boudale Call back URL in the sense?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events