con-troll/auth-openid-connect
最新稳定版本:1.1.0
Composer 安装命令:
composer require con-troll/auth-openid-connect
包简介
Simple OpenID Connect library
README 文档
README
A relatively simple library that allows an application to authenticate a user through the basic OpenID Connect flow. This is a fork of the OpenID-ConnectP-PHP library by Michael Jett, but extends it to allow finer manipulation of the protocol to allow the HTTP rediret to be handled differently then throwing a 302 Redirect from within the library.
Requirements
- PHP 5.6 or greater
- CURL extension
- JSON extension
Example 1: Basic Client
$oidc = new OpenIDConnectClient('https://id.provider.com/', 'ClientIDHere', 'ClientSecretHere'); $url = $oidc->getAuthorizationURL(); // send the client to complete the login // ... // capture the authentication token from the callback into $code $oidc->complete($code); $name = $oidc->requestUserInfo('given_name');
统计信息
- 总下载量: 517
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2015-09-27