OmniAuth Smartsheet Strategy
This gem provides a simple way to authenticate to Smartsheet using OmniAuth with OAuth2.
Installation
Add this line to your application's Gemfile:
gem 'omniauth-smartsheet'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-smartsheet
Usage
Create config/initializers/omniauth.rb
:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :smartsheet, 'APP_CLIENT_ID', nil, :smartsheet_secret => 'APP_SECRET', :scope => 'READ_SHEETS'
end
You may need to customize the scope for your app. See the Smartsheet API documentation for details.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request