PHP code example of kovah / laravel-socialite-oidc
1. Go to this page and download the library: Download kovah/laravel-socialite-oidc 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/ */
kovah / laravel-socialite-oidc example snippets
'oidc' => [
'base_url' => env('OIDC_BASE_URL'),
'client_id' => env('OIDC_CLIENT_ID'),
'client_secret' => env('OIDC_CLIENT_SECRET'),
'redirect' => env('OIDC_REDIRECT_URI'),
// Optional: Enable JWT signature verification (default: false)
'verify_jwt' => env('OIDC_VERIFY_JWT', false),
// Optional: Provide a specific public key for JWT verification
// If not provided, the key will be fetched from the OIDC provider's JWKS endpoint
'jwt_public_key' => env('OIDC_JWT_PUBLIC_KEY'),
],