phly-expressive-oauth2clientauthentication

This library provides a league/oauth2-client adapter for use with zend-expressive-authentication. It supports all OAuth2 Clients that inherit from League\OAuth2\Client\Provider\AbstractProvider.

Installation

Install via Composer:

$ composer require phly/phly-expressive-oauth2clientauthentication

If you are using the zend-component-installer Composer plugin, this will automatically register the shipped ConfigProvider with your application, as well as those of its dependencies (including zend-expressive-authentication and zend-expressive-session). If you are not, you will need to use the shipped Phly\Expressive\OAuth2ClientAuthentication\ConfigProvider to add configuration to your application:

use Phly\Expressive\OAuth2ClientAuthentication\ConfigProvider;

return (new ConfigProvider())();

You will also need to install one or more of the OAuth2 providers you wish to use. As an example:

$ composer require league/oauth2-instagram league/oauth2-google league/oauth2-facebook