MitjaBezensek / SharpBucket

SharpBucket is a .Net wrapper for the Bitbucket's REST API.
MIT License
67 stars 59 forks source link

OAuthentication2 problem #105

Closed andySF closed 5 years ago

andySF commented 5 years ago
var sharpBucket = new SharpBucketV2();
sharpBucket.OAuthentication2(Key,Secret)

throws

System.Exception: 'Unable to retrieve OAuth2 Token: 0 '

Any help? Thanks.

andySF commented 5 years ago

After reading the manual, I was using the wrong key and Secret. I just learned that I need to configure it via https://developer.atlassian.com/apps/ but this doesn't work either

Not sure anymore :(

mnivet commented 5 years ago

Your OAuth consumer should have a callback URL to allow OAuth2.0 like on that screenshot : https://github.com/MitjaBezensek/SharpBucket/blob/master/Assets/OauthConsumerConfig.png

it's written under the field "required for OAuth2" Even if it's not used in the HTTP exchanged, it seems to be like a sort of strange feature flipping in bitbucket...