Download the PHP package kdoyen/openid-connect-php without Composer
On this page you can find all versions of the php package kdoyen/openid-connect-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kdoyen/openid-connect-php
More information about kdoyen/openid-connect-php
Files in kdoyen/openid-connect-php
Package openid-connect-php
Short Description Bare-bones OpenID Connect client
License Apache-2.0
Informations about the package openid-connect-php
PHP OpenID Connect Basic Client
(This package is a fork of rask/openid-connect-php.)
A simple library that allows an application to authenticate a user through the basic OpenID Connect flow. 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.
A special thanks goes to Justin Richer and Amanda Anganes for their help and support of the protocol.
This package was originally created by Michael Jett and extensively modified by Otto Rask.
Requirements
- PHP 5.4 or greater
- CURL extension
- JSON extension
Install
Install library using composer
Then include composer autoloader
Example 1: Basic Client
See openid spec for available user attributes.
Example 2: Dynamic Registration
Be sure to add logic to store the client id and client secret inside your application.
Example 3: Network and Security
Example 4: Request Client Credentials Token
Example 5: Token Introspection
Todo
- Dynamic registration does not support registration auth tokens and endpoints.
- Re-factor/replace $_SESSION usage.
- Re-factor/complete test coverage.
License & authors information
This package is licensed with Apache License 2.0.
- This package was originally created by Michael Jett (jumbojett) from MITRE
- JWT signature verification support by Jonathan Reed [email protected].
- Major refactoring/updates by Otto Rask (rask)