README.md in omniauth-stackexchange-0.0.1 vs README.md in omniauth-stackexchange-0.1.0
- old
+ new
@@ -20,14 +20,16 @@
Once these are in, you need to add the following to your `config/initializers/omniauth.rb`:
```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
- provider :stackexchange, "client_id", "client_secret", public_key: "key"
+ provider :stackexchange, "client_id", "client_secret", public_key: "key", site: 'stackoverflow'
end
```
You will obviously have to put in your client_id, client_secret and public_key, which you get when you register your app with StackExchange (they call them Client Id, Client Secret and Key).
+
+You will also need to specify a site option to uniquely identify the StackExchange site (e.g. `stackoverflow` or `superuser`) you wish to authenticate against. A list of valid site api keys can be found at https://api.stackexchange.com/docs/sites. It's `stackoverflow` by default.
Now just follow the README at: https://github.com/intridea/omniauth
## Supported Rubies