Hi,
I am trying to get an oath token by following instructions here:
https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html
and here:
I always get to the point, where I have to enter my consumer key (which I successfully generated) in
https://bitbucket.org/site/oauth2/authorize?client_id={key}&response_type=token
Is follows (don't worry, I am doing this with a throw away repo):
https://bitbucket.org/site/oauth2/authorize?client_id=mcmg4fzgQaMgADxQG5&response_type=token
And I get an error message 'Invalid redirect_uri'. And now, an hour later, I get now response at all, just a white page.
Am I doing something wrong or is there something wrong with bitbucket?
Why can't I just generate a token using a user interface, like on github?
Thanks for your help!
Hi @vid.vranjek,
It looks like the OAuth consumer you created lacks the callback URL which is required for OAuth2. This is why you're getting an error about redirect URL.
don't worry, I am doing this with a throw away repo
Just a heads up, OAuth tokens are currently scoped not to a repository but to an account. Consumer ID on its own is useless though, so no things to worry about here.
Hope this helps.
Cheers,
Daniil
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.