No commit activity in last 3 years
No release in over 3 years
Smaregi OAuth2 Strategy for OmniAuth
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0
~> 3.0
~> 1.7

Runtime

~> 1.1
~> 2.0
 Project Readme

OmniAuth Smaregi

Smaregi OAuth2 Strategy for OmniAuth.

Read the Smaregi API documentation for more details: https://developers.smaregi.jp/

Installing

Add to your Gemfile:

gem 'omniauth-smaregi'

Then bundle install.

Usage

OmniAuth::Strategies::Smaregi is simply a Rack middleware. Read the OmniAuth docs for detailed instructions: https://github.com/intridea/omniauth.

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 :smaregi, ENV['SMAREGI_CLIENT_ID'], ENV['SMAREGI_CLIENT_SECRET'], scope: 'openapi'
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/.

License

The gem is available as open source under the terms of the MIT License.