Sha256: 78e4ebdfe10bfec32ad6246f0db07eb1488aef1cc1da557063682525c2dbf3d3

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

# OmniAuth Edenred

[![Gem Version](https://badge.fury.io/rb/omniauth-edenred.svg)](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
```

## 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.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omniauth-edenred-1.0.1 README.md
omniauth-edenred-1.0.0 README.md