README.md in omniauth-square-oauth2-0.0.2 vs README.md in omniauth-square-oauth2-0.0.3
- old
+ new
@@ -14,14 +14,14 @@
gem 'omniauth-square-oauth2', :git => 'https://github.com/nickrobinson/omniauth-square-oauth2.git'
Once these are in, you need to add the following to your `config/initializers/devise.rb` (NOTE: A full enumeration of Square Permissions can be found [here](https://developer.squareup.com/docs/oauth-api/square-permissions).):
- config.omniauth :square, "your_app_id", "your_app_oauth_secret", {:scope => "ITEMS_READ,ITEMS_WRITE"}
+ config.omniauth :square, "your_app_id", "your_app_oauth_secret", {:scope => "ITEMS_READ,ITEMS_WRITE,MERCHANT_PROFILE_READ"}
Sandbox Example:
- config.omniauth :square, "your_app_id", "your_app_oauth_secret", {:scope => "ITEMS_READ,ITEMS_WRITE", :client_options => {:connect_site => 'https://connect.squareupsandbox.com', :site => 'https://squareupsandbox.com'}}
+ config.omniauth :square, "your_app_id", "your_app_oauth_secret", {:scope => "ITEMS_READ,ITEMS_WRITE,MERCHANT_PROFILE_READ", :client_options => {:connect_site => 'https://connect.squareupsandbox.com', :site => 'https://squareupsandbox.com'}}
You will obviously have to put in your key and secret, which you get when you register your app with Square (they call them Application Key and Secret Key).
Now just follow the README at: https://github.com/intridea/omniauth