library openid-php-client
A simple library that allows an application to authenticate a user through the basic OpenID Connect flow
apside-top/openid-php-client
A simple library that allows an application to authenticate a user through the basic OpenID Connect flow
- Monday, June 27, 2016
- by seblaporte
- Repository
- 1 Watchers
- 0 Stars
- 38 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
PHP OpenID Connect Client
A simple library that allows an application to authenticate a user through the basic OpenID Connect flow., (*1)
Adapted from jumbojett/OpenID-Connect-PHP created by Michael Jett., (*2)
Requirements
- PHP 5.2 or greater
- CURL extension
- JSON extension
Install
- Install library using composer
composer require 'paquet-name'
- Include composer autoloader
require '/vendor/autoload.php';
Example 1 : Basic Client
$oidc = new OpenIDConnectClient('https://id.provider.com/',
'ClientIDHere',
'ClientSecretHere');
$oidc->authenticate();
$name = $oidc->requestUserInfo('given_name');
[See openid spec for available user attributes][1], (*3)
Example 3 : Network and Security
// Configure a proxy
$oidc->setHttpProxy("http://my.proxy.com:80/");
// Configure a cert
$oidc->setCertPath("/path/to/my.cert");
v1.0.0
1.0.0.0
A simple library that allows an application to authenticate a user through the basic OpenID Connect flow
Sources
Download
Apache Version 2.0
The Requires
by
Sebastien Laporte
dev-master
9999999-dev
A simple library that allows an application to authenticate a user through the basic OpenID Connect flow
Sources
Download
Apache Version 2.0
The Requires
by
Sebastien Laporte