PHP Classes

Fitbit prompt login parameter

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement a PH...  >  All threads  >  Fitbit prompt login parameter  >  (Un) Subscribe thread alerts  
Subject:Fitbit prompt login parameter
Summary:Fitbit prompt login parameter to force login
Messages:4
Author:Edmund
Date:2016-10-10 14:41:35
 

  1. Fitbit prompt login parameter   Reply   Report abuse  
Picture of Edmund Edmund - 2016-10-10 14:41:35
Hi, really enjoy your great library here. Implemented your fitbit oauth 1.0 previous but recently am forced to upgrade to 2.0.

Using your login_with_fitbit2, I can log in successfully with my fitbit account, but how do I force it to relogin (or logout if that matters) if I refresh the page? The page below mentions there is a prompt parameter but I tried putting in to no avail ($client->prompt = 'login';).
dev.fitbit.com/docs/oauth2/#authori ...

Do you have any advice how I can force login? My app requires my user to login and assign participants their fitbit id and pull out their steps data.

  2. Re: Fitbit prompt login parameter   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-10-11 02:39:45 - In reply to message 1 from Edmund
There is the re-authenticate option.

There is no re-authenticate URL for Fitbit but I can add it. Anyway what would be the prompt option that would more adequate for that case? login consent ?

  3. Re: Fitbit prompt login parameter   Reply   Report abuse  
Picture of Edmund Edmund - 2016-10-11 03:39:18 - In reply to message 2 from Manuel Lemos
I feel prompt='login' would be adequate, with the consent part as default.

I tried hard coding into the oauth_configuration.json file, adding prompt=login to the authorize url but it doesn't seem to work.

  4. Re: Fitbit prompt login parameter   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-10-26 10:37:33 - In reply to message 3 from Edmund
OK, I finally added support to reauthenticate on Fitbit2. Just let me know if it works for you.