Skip to content

Unofficial Ruby OmniAuth strategy for authenticating to Smooch.io

License

Notifications You must be signed in to change notification settings

dialoganalytics/omniauth-smooch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smooch's Omniauth strategy

This is the unofficial Ruby OmniAuth strategy for authenticating to Smooch.

Before you can start developing an integration with Smooch, you need to create an application on your account and ask for a client id and secret.

Dependency Status Code Climate

Installation

Add the strategy to your Gemfile:

gem 'omniauth-smooch'

And bundle.

Usage

You can integrate the strategy into your middleware in a config.ru:

use OmniAuth::Builder do
  provider :smooch, ENV['SMOOCH_CLIENT_ID'], ENV['SMOOCH_CLIENT_SECRET'], scope: "integration"
end

If you're using Rails, you'll want to add to the middleware stack:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :smooch, ENV['SMOOCH_CLIENT_ID'], ENV['SMOOCH_CLIENT_SECRET'], scope: "integration"
end

For additional information, refer to the OmniAuth wiki.

License

omniauth-smooch is released under the MIT License.

About

Unofficial Ruby OmniAuth strategy for authenticating to Smooch.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages