0.01
Low commit activity in last 3 years
A long-lived project that still receives updates
Official OmniAuth strategy for MyMLH.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 2.1.1
~> 2.0.9
 Project Readme

MLH/omniauth-mlh

Gem Version Test

This is the official OmniAuth strategy for authenticating with MyMLH. To use it, you'll need to register an application and obtain a OAuth Application ID and Secret from MyMLH.

It now supports MyMLH API V3. Read the MyMLH V3 docs here.

Once you have done so, you can follow the instructions below:

Requirements

This Gem requires your Ruby version to be at least 2.2.0, which is set downstream by Omniauth.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-mlh'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-mlh

Usage (Rack)

use OmniAuth::Builder do
  provider :mlh, ENV['MY_MLH_KEY'], ENV['MY_MLH_SECRET'], scope: 'default email birthday'
end

Usage (Rails with Devise)

# config/devise.rb

Devise.setup do |config|
  config.provider :mlh, ENV['MY_MLH_KEY'], ENV['MY_MLH_SECRET'], scope: 'default email birthday'
end

Contributing

For guidance on setting up a development environment and how to make a contribution to omniauth-mlh, see the contributing guidelines.

Credit

We used part of datariot/omniauth-paypal's code to help us test this gem.

Questions?

Have a question about the API or this library? Start by checking out the official MyMLH documentation. If you still can't find an answer, tweet at @MLHacks or drop an email to engineering@mlh.io.