Hello,
Here is what I want to use for redirect_uri :
- https://www.mywebsite.com/fitbit/?date=2015-10-29&client_id=138218&branding=1
- https://www.mywebsite.com/fitbit/?date=2015-10-28&client_id=123456&branding=4
- https://www.mywebsite.com/fitbit/?date=2015-10-17&client_id=123456&branding=4
If I use this as callback url on fitbit (Application setting) :
mywebsite.com/fitbit/
It works for Oauth 1.0a.
It doesn't work for Oauth 2.
I have the following message: invalid_request - Invalid redirect_uri parameter value
If I understand the Fitbit forum, they block the use of pattern on redirect_uri for reasons of safety and advise using the STATE parameter for this.
If this isn't possible like this, I'll try an alternative solution using sessions.