PHP code example of aetah / oidc-core

1. Go to this page and download the library: Download aetah/oidc-core 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/ */

    

aetah / oidc-core example snippets




declare(strict_types=1);

use Aetah\OIDCCore\OIDCCore;

$oidc = new OIDCCore();

$request = $oidc->parseAuthorizationRequest($_GET);
$oidc->validateAuthorizationRequest($request);

$idToken = $oidc->parseIdTokenJwt($jwt);
$oidc->validateIdToken($idToken, ['https://op.example'], ['client-id'], $expectedNonce);
bash
composer analyse
bash
composer clean
bash
./vendor/bin/phpbench run bench --bootstrap=bench/bootstrap.php --report=aggregate --dump-file=ci/phpbench-baseline.xml