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.
Download dptsi/laravel-sso
More information about dptsi/laravel-sso
Files in dptsi/laravel-sso
Package laravel-sso
Short Description Laravel authentication package for SSO ITS
License
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
OidcLoginRequest
parameter
Logout
@method static void logout(\Dptsi\Sso\Requests\OidcLogoutRequest $request)
-
Create logout request (provided credentials from ITS SSO)
- Call static logout method with
OidcLogoutRequest
parameter
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.75|^9.21|^10.0|^11.0
myits/openid-connect-client Version ^1.4
ext-json Version *