2017 © Pedro Peláez
 

library ider-openid-client-php

IDER OpenID Generic Client for PHP

image

jlmsrl/ider-openid-client-php

IDER OpenID Generic Client for PHP

  • Thursday, June 22, 2017
  • by jlmsrl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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)

Requirements

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

Install

  1. Install library using composer
composer require iducksrl/ider-openid-client-php
  1. Include composer autoloader
require '/vendor/autoload.php';

Example 1: Basic Client


// 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)

Example 2: Network and Security

// Configure a proxy
$oidc->setHttpProxy("http://my.proxy.com:80/");

The Versions

22/06 2017

dev-master

9999999-dev

IDER OpenID Generic Client for PHP

  Sources   Download

The Requires

 

22/06 2017

1.0.0

1.0.0.0

IDER OpenID Generic Client for PHP

  Sources   Download

The Requires