Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 547 Bytes

readme.md

File metadata and controls

16 lines (12 loc) · 547 Bytes

Sparta ID OAuth2 provider

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