1. Integrations
  2. PHP

Setup OpenID-Connect-PHP


  1. PHP 5.4 or greater
  2. CURL extension
  3. JSON extension
  4. XML extension


  1. Install library using composer
composer require jumbojett/openid-connect-php
  1. Include composer autoloader
require __DIR__ . '/vendor/autoload.php';


require __DIR__ . '/vendor/autoload.php';
use Jumbojett\OpenIDConnectClient;

$oidc = new OpenIDConnectClient('https://{{YOUR_CRIIPTO_DOMAIN}}',

// Or any other available claim based on your used authentication method:
$name = $oidc->getVerifiedClaims('name');

Register callback URLs

You will need to register whichever URL you are calling $oidc->authenticate() on as a Callback URL on your Criipto Application.

If you're testing locally using php -S localhost:8000 and a file called auth.php the callback url, as an example, would be https://localhost:8000/auth.php