Download the PHP package aslnbxrz/oneid-socialite without Composer
On this page you can find all versions of the php package aslnbxrz/oneid-socialite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aslnbxrz/oneid-socialite
More information about aslnbxrz/oneid-socialite
Files in aslnbxrz/oneid-socialite
Package oneid-socialite
Short Description OneID provider for Laravel Socialite (Uzbekistan SSO)
License MIT
Informations about the package oneid-socialite
OneID for Laravel Socialite
OneID (Uzbekistan SSO) provider for SocialiteProviders.
Requirements
- PHP 8.1+
- Laravel 10/11+
laravel/socialitesocialiteproviders/manageroraslnbxrz/oneid-socialite
Installation
or
Configuration
Add to config/services.php:
Add to your .env
Laravel 11+ Event Listener
Place this in a service provider boot() method (e.g. App\Providers\AppServiceProvider):
Usage
Web (redirect flow)
API (stateless mode)
OneID can be integrated into API flows (e.g. mobile apps).
You may authenticate users by either access_token (already issued by OneID) or authorization code.
OneID Logout
In addition to logging out locally (revoking your Laravel session or API token), you may also notify OneID to invalidate the session on their side.
Usage
Endpoints
- Authorize / Token / Userinfo:
https://sso.egov.uz/sso/oauth/Authorization.do
Returned User fields
Standard fields
id— fromuser_idorpinorsess_idname— fromfull_nameor concatenation of (first_name+sur_name+mid_name)email— if provided by OneIDavatar— if provided (usuallynull)
Custom OneID fields
pinfl— citizen ID (PINFL)sess_id— OneID session identifierpassport— passport number (pport_no)phone— mobile phone number (mob_phone_noorphone)gender— derived from the first digit of PINFL (maleif odd,femaleif even)
Raw payload
raw— full OneID response as returned by the API ($user->getRaw())
License
MIT