jzecca/oauth2-edenred

Edenred OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1.0.0 2021-06-05 15:12 UTC

This package is auto-updated.

Last update: 2024-04-30 00:32:22 UTC


README

Build Status Coverage

This package provides Edenred Connect OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Installation

To install, use composer:

composer require jzecca/oauth2-edenred

Usage

Usage is the same as The League's OAuth client, using \Jzecca\OAuth2\Client\Provider\Edenred as the provider.

Available Options

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

Testing

Tests can be run with:

composer test

Code style can be fixed with:

composer fix