When I am calling Bitbucket's authorize API :https://bitbucket.org/site/oauth2/authorize?response_type=code&client_id=cjsdknkcndksdnan&scope=pullrequest:write
scope passed is pullrequest:write
I am seeing the below thing in the UI:
saanh_007 is requesting access to the following:
Is it expected behavior?
Hi @saanjh jain and welcome to the community!
The permissions you see on this page are the permissions you have granted to the OAuth consumer.
If you want to change them, you can edit the OAuth consumer and change its permissions.
Kind regards,Theodora
ohh got it and the scope we pass in the /authorize call will decide what is the scope of the access Token.Am i right?
Hi @saanjh jain,
The scope of the access token is also determined by the permissions you have selected for the OAuth consumer, I don't believe it's possible to override them by adding scope in the URL https://bitbucket.org/site/oauth2/authorize?client_id={client_id}&response_type=token
Then what is the role of scope?
When it will be used?
It looks like you're new here. Sign in or register to get started.