Skip to content

Added support for authorization code grant flow#47

Merged
teramonagi merged 3 commits intoteramonagi:masterfrom
cosmomeese:master
Jan 11, 2021
Merged

Added support for authorization code grant flow#47
teramonagi merged 3 commits intoteramonagi:masterfrom
cosmomeese:master

Conversation

@cosmomeese
Copy link
Copy Markdown
Contributor

@cosmomeese cosmomeese commented Dec 4, 2018

Specifically:

1) added ability to specify use_basic_auth
use_basic_auth (for httr::oauth2.0_token) must be set to TRUE for Fitbit oauth2.0 authorization code grant flow (as per Fitbit API) currently use_basic_auth defaults to FALSE (which is fine I think for implicit code grant flow). Since some users may want to use authorization code grant flow for their applications exposing this so users can change this and use this library is helpful.

2) added ability to specify query parameters for Fitbit authentication page
see httr#503
The httr library was recently updated to support the ability to pass down URLquery parameters to the initial oauth2.0 authorization page. This is useful for the for defining additional URI parameters in the authorization code grant flow (such as token expiration duration, ability to force authorization page/consent and others - see Authorization Page @ https://dev.fitbit.com/build/reference/web-api/oauth2/) that must be appended to the initial authorization URL.

@cosmomeese cosmomeese changed the title Fixed problems with Fitbit oauth2.0 workflow Added support for authorization code grant flow Dec 4, 2018
@teramonagi teramonagi merged commit 03b815f into teramonagi:master Jan 11, 2021
@teramonagi
Copy link
Copy Markdown
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants