- « Previous
-
- 1
- 2
- Next »
05-11-2015 16:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-11-2015 16:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello,
Would it be possible to allow the use of a custom scheme?
(i.e.) instead of http://, https://, file:// etc. I'd like to use overwolf-extension:// Currenlty, overwolf-extension:// does not validate when I attempt to use it as a redirect URL in my application's settings.
For reference: http://developers.overwolf.com/url-based-api/
For context: I have a treadmill desk at home that I love to use and I regularly use my fitbit while walking. What I want is for an application that will show current steps (updated every 30-60 seconds), maybe a progress bar to daily goal, etc. while playing a pc game, watching netflix, etc via the Overwolf overlay.
Thanks!
Answered! Go to the Best Answer.

- Labels:
-
JavaScript
-
OAuth 2.0
02-17-2019 08:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-17-2019 08:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Navindas
What is your complete redirect URL?
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

02-17-2019 20:52 - edited 02-17-2019 21:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-17-2019 20:52 - edited 02-17-2019 21:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
My complete redirect url is mentioned below:
https://www.nourishgenie.com
I have changed it to https but on the allow page when you people ask user to allow to access fitbit settings such as sleep, activity tracking, heart rate etc. On that page "allow" or "deny" button is not working even If I select "Allow All" option still "allow" or "deny" button is not functioning properly it never go to next page or back page and I am doing this thing on iOS for mobile.
--
Regard,
Navindas Ghadge - Software Engineer

02-18-2019 04:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-18-2019 04:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Custom URLs should work as the redirect URL, so you should be able to use myiOSapp://. However, this URL needs to be an absolute URL. This means, you need to include a specific entry point into your application such as myiOSapp://callback.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

04-05-2019 02:43 - edited 04-05-2019 02:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-05-2019 02:43 - edited 04-05-2019 02:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I tried with custom url scheme as you mentioned but still it didnt work for me. I tried it on OAuth 2.0 tutorial page on desktop where I get already generated authorize url and clicking on that url it opens the new tab of browser and shows blank response in the url bar. I have set custom redirect url like myiOS://www.nourishgenie.com.
Please reply as soon as possible.

04-05-2019 04:04 - edited 04-05-2019 06:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-05-2019 04:04 - edited 04-05-2019 06:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
No still it not working for custom url scheme. I tried to do it on oauth 2.0 tutorial page with custom url scheme e.g myiOS://callback or myiOS:// still it does not give me access token which I wanted for further web api services, it gives me a blank response. Please try to do it on OAuth 2.0 tutorial page.

04-05-2019 14:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



04-05-2019 14:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Navindas,
The URLs provided, myiOS://www.nourishgenie.com and myiOS://callback, should be real access points in your application that should accept the authorization code provided in the browser URL.
For example, once you enable the scopes and press the allow button, the user should be redirected to the callback URL. The URL will also contain the authorization code. Here's what it would look like
https://oauth.net/callback?code=fa640ab1d3c3566834eec7f65ede398c6ae9b271&state=no_data#_=_
Your application needs to parse this URL to obtain the authorization code, the request the access token using the authorization code. Did you see this when you tried the OAuth 2.0 tutorial page?
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

04-08-2019 02:36 - edited 04-08-2019 02:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-08-2019 02:36 - edited 04-08-2019 02:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
No I didnt see any authorization code when I was trying to authorize in OAuth 2.0 tutorial page, the url bar was showing only this response "about:blank", and I am using "Implicit grant flow" to have access token for further web api services. I am getting access token but with "https" url scheme but problem is that iOS doesn't recognize "https" url scheme it only recognize "custom" url scheme and I want access token with custom url scheme. So because of this reason I am unable to catch redirect URL in safari view controller through which it helps to open specific app through that redirect URL.

04-08-2019 15:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



04-08-2019 15:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
For Implicit Grant Flow, your redirect URL will contain the access_token, the user_id, the scopes the user enabled, the token type and the lifetime length of the token. Here's an example.
If you're receiving "about:blank", then I think you have something configured incorrectly. Would you please private message me your client ID?
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google


- « Previous
-
- 1
- 2
- Next »