2017 © Pedro Peláez
 

library lightopenid

Lightweight PHP5 library for easy OpenID authentication.

image

iignatov/lightopenid

Lightweight PHP5 library for easy OpenID authentication.

  • Monday, January 27, 2014
  • by WillSkates
  • Repository
  • 1 Watchers
  • 4 Stars
  • 128,399 Installations
  • PHP
  • 10 Dependents
  • 0 Suggesters
  • 63 Forks
  • 0 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

LightOpenID

Lightweight PHP5 library for easy OpenID authentication., (*1)

Quick start

Sign-on with OpenID in just 2 steps:

  1. Authentication with the provider:, (*2)

    ```php $openid = new LightOpenID('my-host.example.org');, (*3)

    $openid->identity = 'ID supplied by user';, (*4)

    header('Location: ' . $openid->authUrl()); ```, (*5)

  2. Verification:, (*6)

    ```php $openid = new LightOpenID('my-host.example.org');, (*7)

    if ($openid->mode) { echo $openid->validate() ? 'Logged in.' : 'Failed!'; } ```, (*8)

Support for AX and SREG extensions:

To use the AX and SREG extensions, specify $openid->required and/or $openid->optional before calling $openid->authUrl(). These are arrays, with values being AX schema paths (the 'path' part of the URL). For example:, (*9)

php $openid->required = array('namePerson/friendly', 'contact/email'); $openid->optional = array('namePerson/first');, (*10)

Note that if the server supports only SREG or OpenID 1.1, these are automaticaly mapped to SREG names. To get the values use:, (*11)

php $openid->getAttributes();, (*12)

For more information see USAGE.md., (*13)

Requirements

This library requires PHP >= 5.1.2 with cURL or HTTP/HTTPS stream wrappers enabled., (*14)

Features

  • Easy to use - you can code a functional client in less than ten lines of code.
  • Uses cURL if avaiable, PHP-streams otherwise.
  • Supports both OpenID 1.1 and 2.0.
  • Supports Yadis discovery.
  • Supports only stateless/dumb protocol.
  • Works with PHP >= 5.
  • Generates no errors with error_reporting(E_ALL | E_STRICT).

License

LightOpenID is an open source software available under the MIT License., (*15)

The Versions

27/01 2014

dev-master

9999999-dev https://github.com/iignatov/LightOpenID

Lightweight PHP5 library for easy OpenID authentication.

  Sources   Download

MIT

The Requires

  • php >=5.2

 

authentication security openid

27/01 2014

1.0.0

1.0.0.0 https://github.com/iignatov/LightOpenID

Lightweight PHP5 library for easy OpenID authentication.

  Sources   Download

MIT

The Requires

  • php >=5.2

 

authentication security openid