PHP code example of quioteframework / auth-oauth

1. Go to this page and download the library: Download quioteframework/auth-oauth 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/ */

    

quioteframework / auth-oauth example snippets


$discovery = new OidcDiscoveryClient($psr18Client, $psr17Factory, $cachePool, cacheTtl: 3600);
$document  = $discovery->discover('https://login.example.com/tenant-1/v2.0');

$client = OidcClient::fromDiscovery($document, $clientId, $clientSecret, $redirectUri, ['openid', 'profile']);
$jwksUri = $document->getJwksUri(); // hand to firebase/php-jwt's CachedKeySet for ID-token verification