Skip to content

OmniAuth strategy for authenticating to Fitbit using their OAuth API.

License

Notifications You must be signed in to change notification settings

getkiwicom/omniauth-fitbit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OmniAuth Fitbit Strategy

This gem is an OmniAuth 1.0+ Strategy for the Fitbit API.

Usage

Add the strategy to your Gemfile:

gem 'omniauth-fitbit'

Then integrate the strategy into your middleware:

use OmniAuth::Builder do
  provider :fitbit, 'consumer_key', 'consumer_secret'
end

In Rails, create a new file under config/initializers called omniauth.rb to plug the strategy into your middleware stack.

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :fitbit, 'consumer_key', 'consumer_secret'
end

To register your application with Fitbit and obtain a consumer key and secret, go to the Fitbit application registration.

For additional information about OmniAuth, visit OmniAuth wiki.

For a short tutorial on how to use OmniAuth in your Rails application, visit this tutsplus.com tutorial.

Copyright

Copyright (c) 2012 TK Gospodinov. See LICENSE for details.

About

OmniAuth strategy for authenticating to Fitbit using their OAuth API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%