https://github.com/johnvuko/omniauth-edenred
OmniAuth Strategy for Edenred via OAuth2
https://github.com/johnvuko/omniauth-edenred
edenred oauth omniauth
Last synced: 9 months ago
JSON representation
OmniAuth Strategy for Edenred via OAuth2
- Host: GitHub
- URL: https://github.com/johnvuko/omniauth-edenred
- Owner: johnvuko
- License: mit
- Created: 2018-03-23T09:53:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-23T12:47:51.000Z (about 8 years ago)
- Last Synced: 2025-10-02T09:56:01.442Z (9 months ago)
- Topics: edenred, oauth, omniauth
- Language: Ruby
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# OmniAuth Edenred
[](http://badge.fury.io/rb/omniauth-edenred)
Strategy to authenticate [Edenred](https://www.edenred.fr/) in OmniAuth.
## Installation
OmniAuth Edenred is distributed as a gem, which is how it should be used in your app.
Include the gem in your Gemfile:
gem 'omniauth-edenred', '~> 1.0'
Integrate this strategy to your OmniAuth middleware.
```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider(
:edenred,
ENV['EDENRED_CLIENT_ID'],
ENV['EDENRED_SECRET_KEY'],
sandbox: !Rails.env.production?,
scope: 'openid edg-xp-mealdelivery-api offline_access',
authorize_params: {
acr_values: "tenant:XXXXX",
ui_locales: 'fr-FR'
}
)
end
```
## Common problems
If you get an error `JWT::ImmatureSignature` 'Signature nbf has not been reached', it means your server date is not up to date.
## Author
- [Jonathan VUKOVICH TRIBOUHARET](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))
## License
OmniAuth Edenred is released under the MIT license. See the LICENSE file for more info.