apploud / oauth2-spartaid
此包已被废弃且不再维护。未建议替代包。
Spartaid OAuth 2.0 客户端提供商,用于 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
## 使用方法
$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);
之后,您可以像使用其他 PHPLeague OAuth2 提供商(请参阅文档)一样使用此提供商。