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
Requires
- league/oauth2-client: ^2.3
- nette/utils: ^2.4
Requires (Dev)
- phpstan/phpstan: ^0.9.2
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).