liginc / unias-client-php
LIG Unified Account Service OAuth 2.0 Client Provider for The PHP League OAuth2-Client
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/liginc/unias-client-php
Requires
- php: ^7.0.0
- league/oauth2-client: ^2.2
This package is not auto-updated.
Last update: 2025-10-12 07:47:12 UTC
README
LIG Unified Account Service OAuth 2.0 Client Provider for The PHP League OAuth2-Client.
Requirements
PHP >= 7.0
Usage
Installation
composer require liginc/unias-client-php
Setting up a new client
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/', ]);
Parameters
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.
Library Documentation
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.