PHP code example of businessprocess / oidc-auth

1. Go to this page and download the library: Download businessprocess/oidc-auth library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

businessprocess / oidc-auth example snippets


\Illuminate\Support\Facades\Route::middleware(['auth:oidc'])->group(fn() => {

})


//Guard
    [
        'driver' => 'oidc',
        'provider' => null, // if null return OidcUser model 
        'decoder' => null, // Jwt token decoder (JwtDecoder), if null use service decoder
    ]

class User extends Authenticatable
{
    use \OidcAuth\HasJwtToken;
}