Download the PHP package steverhoades/oauth2-openid-connect-client without Composer
On this page you can find all versions of the php package steverhoades/oauth2-openid-connect-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download steverhoades/oauth2-openid-connect-client
More information about steverhoades/oauth2-openid-connect-client
Files in steverhoades/oauth2-openid-connect-client
Package oauth2-openid-connect-client
Short Description OAuth2 OpenID Connect Client that utilizes the PHP Leagues OAuth2 Client
License MIT
Informations about the package oauth2-openid-connect-client
OAuth 2.0 OpenID Connect Client
This package uses the PHP League's OAuth2 Client and this JWT Token Library to provide an OAuth2 OpenID Connect client.
Requirements
The following versions of PHP are supported.
- PHP 7.4
- PHP 8.0
- PHP 8.1
Usage
You may test your OpenID Connect Client against bshaffer's demo oauth2 server.
Run the Example
An example client has been provided and can be found in the /example directory of this repository. To run the example you can utilize PHPs built-in web server.
Then open this link: http://localhost:8081/
This should send you to bshaffer's OAuth2 Live OpenID Connect Demo site.
Token Verification
The id_token is verified using the lcobucci/jwt library. You will need to pass the appropriate signer and publicKey to the OpenIdConnectProvider.
Install
Via Composer
Clock difference tolerance in nbf
Some clock difference can be tolerated between the IdP and the SP by using the nbfToleranceSeconds
option in the
getAccessToken
method call.
License
The MIT License (MIT). Please see License File for more information.
TODO
- [ ] add support for OpenID Connect Authentication Request Parameters
- [x] add tests
- [ ] check implicit and hybrid flow support
- [x] example endpoints showing usage
All versions of oauth2-openid-connect-client with dependencies
lcobucci/jwt Version ~4.0
league/oauth2-client Version ^2.0
webmozart/assert Version ^1.10