Hi all,
I'm trying to get my app to authorize through OAuth2.
i've set up the OAuth2 entry, received the Client Id and secret.
I've also set the callback url to something like: something://somethingElse
When browsing to https://bitbucket.org/site/oauth2/authorize?client_id=***CLIENT_ID****&response_type=code
I get the page that tells about the permission I'm giving to the app and I'm able to click the Grant Access button.
The issue is that the click doesn't redirect to the callback url. It loads for a second and stays on the same page. The access is granted (I've checked in my Bitbucket profile).
Any help will be appreciated.
Thanks a lot,
Giora.
Hi there,
Is this mobile app or web app?
If this is mobile app, make sure that your "deep linking" is working properly.
Thanks for answering.
This is a mobile app. But even on a laptop browser the callback url not loaded.
I've found out that when setting the scheme to be http (or https) it works fine, but I wanted to avoid using http/s (and it was possible before) to avoid other apps from responding to this intent (Android)
For example this url doesn't work: bitbucket://my_app
And this does: https://my_app
Thanks,
Giora.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>>For example this url doesn't work: bitbucket://my_app
Because some other app, already register this url for deep link. To troubleshoot this problem
>>> I wanted to avoid using http/s (and it was possible before) to avoid other apps from responding to this intent (Android)
Even when you use bitbucket://my_app, it is possible to use your intent from other app too. In this case there is no much different between http(s) and bitbucket://my_app.
As far as I know, it is better to use http(s) over bitbucket://my_app for deep link.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will check again.
For the record, I didn't use bitbucket://my_app. I've something more unique than that.
I'll update soon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Barry,
Checked it once again and found the issue. It was indeed an app issue with defining the url host.
For future developers: My mistake was to include the "://" in the host name defined in the activity intent filter.
Sorry for the hassle and thanks a lot for the help.
Giora.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Giora, 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.
@gioravered , can you please mark my answer as "Best answer", since the problem is reload to "deep linking".
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.
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.