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"
}
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
thanks, you were ritth , the callback URL was missing, it works fine with gran type (client_credentials.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's good to hear and you're very welcome, thank you for the update.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.