The problem is if someone (patient A) logs into their fitbit account and simply closed the browser, Fitbit retains the user credentials. If another individual (patient B) opens up and try to do oauth authentication from the same computer and same browser, we will be directed to paitent A's authorization page. Is there a way that I can make sure user has to login again everything time they do oauth authentication?
I am looking for something like Twitter's OAuth API parameter "force_redirect=true", or Facebook's "auth_type=reauthenticate"
Thanks for any reply.
Answered! Go to the Best Answer.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Not yet, but this is a planned feature for our OAuth 2.0 implementation. I do not have an ETA yet.
For OAuth 1.0a, users are always prompted to authorize the application and there is a "Not you?" notice on the bottom of the authorization screen.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Not yet, but this is a planned feature for our OAuth 2.0 implementation. I do not have an ETA yet.
For OAuth 1.0a, users are always prompted to authorize the application and there is a "Not you?" notice on the bottom of the authorization screen.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
You should not use that method. There is an officially supported method coming in the next two weeks.
Also, I think Fitbit's X-Frame-Options would block that page from being loaded in an iframe.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Please see the documentation for the OAuth 2.0 Authorization page. The "prompt" URL parameter provides this functionality.
Best Answer@JeremiahFitbit has this changed since this was answered? I am trying to force login for my app and `prompt=login` is not working. I am assuming that "login" is the correct value to pass into the query parameter as I cannot find any documentation on this. The OAuth 2.0 Authorization page you linked to does not mention the `prompt` parameter anywhere.
Best Answer
Best Answer