Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjaminmedia/omniauth-bonnier-oauth2
https://github.com/benjaminmedia/omniauth-bonnier-oauth2
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/benjaminmedia/omniauth-bonnier-oauth2
- Owner: BenjaminMedia
- Created: 2015-01-19T09:19:55.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-20T10:46:56.000Z (almost 9 years ago)
- Last Synced: 2023-03-11T19:36:02.139Z (almost 2 years ago)
- Language: Ruby
- Size: 20.5 KB
- Stars: 0
- Watchers: 24
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#OmniAuth Bonnier OAuth2
Strategy to authenticate Bonnier in OmniAuth.
It's using the OAuth2 from the Bonnier API
##Usage
Add the strategy to your `Gemfile` alongside OmniAuth:```ruby
gem 'omniauth'
gem 'omniauth-bonnier-oauth2'
```Integrate this strategy to your OmniAuth middleware.
```ruby
use OmniAuth::Builder do
provider :bonnier_oauth2, ENV['BONNIER_KEY'], ENV['BONNIER_SECRET']
end
```You need to add your key and secret.
Also remember to add the full callback path to your Bonnier App Console, for example: http://example.com/auth/bonnier-oauth2/callback
For more information check the [OmniAuth wiki](https://github.com/intridea/omniauth/wiki).