Repository is archived
No commit activity in last 3 years
No release in over 3 years
An OmniAuth strategy for a Mindvalley account (shamelessly stolen from https://github.com/ZenCocoon/omniauth-testoauth2strategy).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

Usage and Installation

In your Gemfile:

gem 'omniauth-mindvalley', :git => 'git://github.com/mindvalley/omniauth-mindvalley.git'

In a file called oauth.yml in your config folder:

production:
  mindvalley:
    consumer_key: your_production_key
    consumer_secret: your_production_secret

development:
  mindvalley:
    consumer_key: your_development_key
    consumer_secret: your_development_secret

In an initializer:

OAUTH = YAML.load_file(File.join(Rails.root, "config", "oauth.yml"))

# load all the possible oauth strategies
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :mindvalley, OAUTH[Rails.env]['mindvalley']['consumer_key'],
    OAUTH[Rails.env]['mindvalley']['consumer_secret']
end