This package provides Edenred Connect OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
To install, use composer:
composer require jzecca/oauth2-edenred
Usage is the same as The League's OAuth client, using \Jzecca\OAuth2\Client\Provider\Edenred
as the provider.
The Edenred
provider has the following options:
Name | Type | Default | Description |
---|---|---|---|
locale |
string |
Gives a hint about the desired display language of the login UI | |
loginHint |
string |
Pre-fills the username field on the login page | |
sandbox |
bool |
false |
Uses the sandbox API if set to true |
scopes |
array |
[] |
Adds one or more registered scopes |
tenant |
string |
Passes a tenant name to the user service |
Tests can be run with:
composer test
Code style can be fixed with:
composer fix