dev-master
9999999-devIDER OpenID Generic Client for PHP
The Requires
- php >=5.3
- phpseclib/phpseclib 2.0.1
- ext-json *
- ext-curl *
1.0.0
1.0.0.0IDER OpenID Generic Client for PHP
The Requires
- php >=5.3
- phpseclib/phpseclib 2.0.1
- ext-json *
- ext-curl *
Wallogit.com
2017 © Pedro Peláez
IDER OpenID Generic Client for PHP
A simple library that allows an application to authenticate a user through the IDer authentication platform. This library hopes to encourage OpenID Connect use by making it simple enough for a developer with little knowledge of the OpenID Connect protocol to setup authentication., (*1)
This work is based on OpenIDConnectClient for PHP5 by Michael Jett. Thanks., (*2)
composer require iducksrl/ider-openid-client-php
require '/vendor/autoload.php';
// 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();
[See openid spec for available user attributes][1], (*3)
// Configure a proxy
$oidc->setHttpProxy("http://my.proxy.com:80/");
IDER OpenID Generic Client for PHP
IDER OpenID Generic Client for PHP