Download the PHP package dptsi/laravel-sso without Composer
On this page you can find all versions of the php package dptsi/laravel-sso. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-sso
Laravel SSO
A helper package for ITS SSO authentication in laravel framework
Requirements
- PHP 7.4 or greater
- Laravel version 8
- myits/openid-connect-client
Installation
Install using composer:
Usage
Login
@method static void login(\Dptsi\Sso\Requests\OidcLoginRequest $request)
-
Create login request (provided credentials from ITS SSO)
- Call static login method with
OidcLoginRequestparameter
Logout
@method static void logout(\Dptsi\Sso\Requests\OidcLogoutRequest $request)
-
Create logout request (provided credentials from ITS SSO)
- Call static logout method with
OidcLogoutRequestparameter
Check if the user is authenticated
@method static bool check()
Get current authenticated user
@method static \Dptsi\Sso\Models\User|null user()
Set current authenticated user
@method static void set(\Dptsi\Sso\Models\User $user)
For change role purpose
Get token of current authenticated user
Additional Information
Middleware
Call middleware sso from route or controller to check if user is authenticated or not
SSO Helpers
sso()-> same as Sso::, it can be called from controller, route, view, etc.
Claim support
Support any claim from ITS SSO, different claim determine Dptsi\Sso\Models\User model property (whether is null or not), more about User Model
All versions of laravel-sso with dependencies
laravel/framework Version ^8.12
myits/openid-connect-client Version ^1.5.0
ramsey/uuid Version ^4.0.0
ext-json Version *