No commit activity in last 3 years
No release in over 3 years
OmniAuth Oauth2 strategy for fitbit.com - https://dev.fitbit.com/docs/oauth2/
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.3

Runtime

 Project Readme

OmniAuth OAuth2 strategy for Fitbit

This gem is an OAuth2 OmniAuth Strategy for the Fitbit API.

Gem Status

Gem Version Build Status

Installing

Add to your Gemfile:

gem 'omniauth-fitbit-oauth2'

Then bundle install.

Usage

OmniAuth::Strategies::FitbitOauth2 is simply a Rack middleware. Read the OmniAuth 2.0 docs for detailed instructions.

Here's a quick example, adding the middleware to a Rails app in config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :fitbit_oauth2, ENV['FITBIT_CLIENT_ID'], ENV['FITBIT_CLIENT_SECRET']
end