idangozlan / verdaccio-bitbucket

BitBucket auth plugin for verdaccio
MIT License
7 stars 17 forks source link

Bitbucket user roles do not match with documentation #5

Closed ath88 closed 5 years ago

ath88 commented 6 years ago

It appears that the actual user roles in the Bitbucket API version 2.0 doesn't match with the expected roles in the documentation.

From https://developer.atlassian.com/bitbucket/api/2/reference/resource/teams there appears to be 3 different roles:

The documentation for this plugin mentions:

I suggest that the plugin is altered to match the user roles from the Bitbucket API. Would that be prudent?

asciimo commented 6 years ago

It would be helpful to mention that you can see what privileges a user has by calling the API yourself: curl --user you@your.org:password https://api.bitbucket.org/1.0/user/privileges This was very helpful in my case, as the Bitbucket UI was only showing me pretty versions of the real values.

idangozlan commented 5 years ago

Fixed on v2.0.0