PHP code example of iducksrl / ider-openid-client-php
1. Go to this page and download the library: Download iducksrl/ider-openid-client-php 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/ */
iducksrl / ider-openid-client-php example snippets
// Set a log file
\IDERConnect\IDEROpenIDClient::$IDERLogFile = './ider-connect.log';
// Instanziate
$iderconnect = new \IDERConnect\IDEROpenIDClient($client_id, $client_secret, $extra_scopes);
// Set extra scopes or reset it
$iderconnect->setScope('my_extra_scope');
// Connect
$iderconnect->authenticate();
// Request user info
$userInfo = $iderconnect->requestUserInfo();
// Configure a proxy
$oidc->setHttpProxy("http://my.proxy.com:80/");
composer