2017 © Pedro Peláez
 

library openid-php-client

A simple library that allows an application to authenticate a user through the basic OpenID Connect flow

image

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

The README.md

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

  1. PHP 5.2 or greater
  2. CURL extension
  3. JSON extension

Install

  1. Install library using composer
composer require 'paquet-name'
  1. 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");

The Versions

27/06 2016

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

27/06 2016

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