Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

omniauth-mapmyfitness-oauth2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omniauth-mapmyfitness-oauth2

  • 0.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

OmniAuth MapMyFitness OAuth2

This gem contains the MapMyFitness strategy for OmniAuth using OAuth2.

Setup

Install the Gem

Add the dependency to your application's Gemfile:

gem 'omniauth-mapmyfitness-oauth2'

Key & Secret Variables

Your secret credentials should be stored in environment variables. You can do this in a your .bash_profile with the following:

export MMF_API_KEY=your_key_goes_here
export MMF_API_SECRET=your_secret_goes_here
Checking Environment Variables

Once you have those ENV variables set, you can check them from IRB:

$ irb
> ENV['MMF_API_KEY']
 => "09375ijkds9072l"
> ENV['MMF_API_SECRET']
 => "08993mhjd8721lk"

Create an Initializer

Create a config/initializers/omniauth.rb with the following:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :mapmyfitness, ENV['MMF_API_KEY'], ENV['MMF_API_SECRET']
end

NOTE: The ENV['MMF_API_KEY'] is unsed in an unusual place in this strategy. It must be defined for the library to work.

FAQs

Package last updated on 12 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc