-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa66b83
commit 3e5d77f
Showing
13 changed files
with
82 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,38 @@ | ||
Fitbit | ||
====== | ||
|
||
Fitbit offers OAuth1 as their auth mechanism. In order to enable it, follow: | ||
Fitbit supports both OAuth 2.0 and OAuth 1.0a logins. | ||
OAuth 2 is preferred for new integrations, as OAuth 1.0a does not support getting heartrate or location and will be deprecated in the future. | ||
|
||
- Register a new application at `Fitbit dev portal`_, be sure to select | ||
``Browser`` as the application type. Set the ``Callback URL`` to | ||
``http://<your hostname>//complete/fitbit/``. | ||
1. Register a new OAuth Consumer `here`_ | ||
|
||
- Fill **Consumer Key** and **Consumer Secret** values:: | ||
2. Configure the appropriate settings for OAuth 2.0 or OAuth 1.0a (see below). | ||
|
||
SOCIAL_AUTH_FITBIT_KEY = '' | ||
SOCIAL_AUTH_FITBIT_SECRET = '' | ||
OAuth 2.0 or OAuth 1.0a | ||
----------------------- | ||
|
||
.. _Fitbit dev portal: https://dev.fitbit.com/apps/new | ||
- Fill ``Consumer Key`` and ``Consumer Secret`` values in the settings:: | ||
|
||
SOCIAL_AUTH_FITBIT_KEY = '<your-consumer-key>' | ||
SOCIAL_AUTH_FITBIT_SECRET = '<your-consumer-secret>' | ||
|
||
OAuth 2.0 specific settings | ||
--------------------------- | ||
|
||
By default, only the ``profile`` scope is requested. To request more scopes, set SOCIAL_AUTH_FITBIT_SCOPE:: | ||
|
||
SOCIAL_AUTH_FITBIT_SCOPE = [ | ||
'activity', | ||
'heartrate', | ||
'location', | ||
'nutrition', | ||
'profile', | ||
'settings', | ||
'sleep', | ||
'social', | ||
'weight' | ||
] | ||
|
||
The above will request all permissions from the user. | ||
|
||
.. _here: https://dev.fitbit.com/apps/new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters