adamlundrigan/ldc-zfc-user-oauth2
最新稳定版本:1.0.0
Composer 安装命令:
composer require adamlundrigan/ldc-zfc-user-oauth2
包简介
OAuth2 server integration for ZfcUser
README 文档
README
What?
An extension for zf-oauth2 allowing use of ZfcUser as authentication source
How?
-
Install module using Composer
composer require adamlundrigan/ldc-zfc-user-oauth2:<version> -
Enable required modules in your
application.config.phpfile:- ZfcBase
- ZfcUser
- LdcZfcUserOAuth2
-
Configure ZfcUser
-
Override the
zf-ouath2configuration to use the provided storage provider:return array( 'zf-oauth2' => array( 'storage' => 'ldc-zfc-user-oauth2-storage-pdo', ), ); -
Override the authentication adapter used by ZfcUser. Locate the
auth_adapterskey in yourzfc-user.global.phpconfig file and replace it with this:'auth_adapters' => array( 100 => 'ldc-zfc-user-oauth2-authentication-adapter-db' ),
TODO
- Use ZfcUser's authentication mechanism in OAuth2 server
- Populate ZfcUser auth storage when OAuth2 server authentication succeeds
- Some tests might be a good idea
- Some documentation and an example might also be good ideas
统计信息
- 总下载量: 586
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-11-08