Download the PHP package pzworks/openid-connect-php without Composer
On this page you can find all versions of the php package pzworks/openid-connect-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pzworks/openid-connect-php
More information about pzworks/openid-connect-php
Files in pzworks/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
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.
Requirements
- PHP 5.4 or greater
- CURL extension
- JSON extension
Install
-
Install library using composer
- Include composer autoloader
Example 1: Basic Client
See openid spec for available user attributes
Example 2: Dynamic Registration
Example 3: Network and Security
Example 4: Request Client Credentials Token
Example 5: Request Resource Owners Token (with client auth)
Example 6: Basic client for implicit flow e.g. with Azure AD B2C (see http://openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth)
Example 7: Introspection of an access token (see https://tools.ietf.org/html/rfc7662)
Development Environments
In some cases you may need to disable SSL security on on your development systems. Note: This is not recommended on production systems.
Todo
- Dynamic registration does not support registration auth tokens and endpoints
Contributing
- All pull requests, once merged, should be added to the changelog.md file.