apploud/oauth2-spartaid

This package is abandoned and no longer maintained. No replacement package was suggested.

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

v0.27 2020-12-07 10:13 UTC

This package is auto-updated.

Last update: 2021-07-15 07:41:29 UTC


README

##Usage

$config = [
    'clientId' => 'my-client-id',
    'clientSecret' => 'my-client-secret',
    'redirectUri' => 'https://my-uri.example.com',
    'environment' => Apploud\OAuth2\Client\Provider\SpartaIdEnvironment::DEVELOPMENT, // or CLIENT or STAGING or PRODUCTION 
];

$provider = new Apploud\OAuth2\Client\Provider\SpartaId($config);

Afterwards, use this provider as you would otherwise do, with any other OAuth2 provider from PHPLeague (see docs).