Skip to content

About

Smaregi strategy for Omniauth used by Pie

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

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",
    sandbox: Rails.env.development? || Rails.env.test?, # optional
    fail_path: "/some/failure/path" # optional       
end

License

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

About

Smaregi strategy for Omniauth used by Pie

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages