LIG Unified Account Service OAuth 2.0 Client Provider for The PHP League OAuth2-Client.
PHP >= 7.0
composer require liginc/unias-client-php
new UniasProvider([
'clientId' => 'XXXXXXXXXXXXXXXXXXXX',
'clientSecret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'redirectUri' => 'https://yourservice.example.com/login/callback',
'authorizeUri' => 'https://unias.example.com/',
'tokenUri' => 'https://api.unias.example.com/token',
'apiBaseUri' => 'https://api.example.com/',
]);
clientId
: A registered Client ID provided by the Authorization Server (Unias service provider).clientSecret
: A Client Password registered with the Client ID to the Authorization Server.redirectUri
: An URI to the Redirection Endpoint of the Client (Your Service).authorizeUri
: An URI to the Authorization Endpoint of the Authorization Server.tokenUri
: An URI to the Token Endpoint of the Authorization Server.apiBaseUri
: A base URI to the API endpoints of the Resource Server.
This is a plug-in provider of the PHP League's OAuth 2.0 Client, so we suggest you to refer to the library documentation for detailed usage.