api-skeletons/zf-oauth2-doctrine-identity 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

api-skeletons/zf-oauth2-doctrine-identity

最新稳定版本:3.0.1

Composer 安装命令:

composer require api-skeletons/zf-oauth2-doctrine-identity

包简介

Doctrine Enabled AuthenticatedIdentity

README 文档

README

Build Status Gitter Patreon Total Downloads

Versions

1.x for PHP 5.5 to 7.0. 2.x for PHP 7.1 onward.

About

By default zfcampus/zf-mvc-auth returns an ZF\MvcAuth\Identity\AuthenticatedIdentity when authenticated with a valid access token. This repository replaces that identity with a ZF\OAuth2\Doctrine\Identity\AuthenticatedIdentity.

ZF\OAuth2\Doctrine\Identity\AuthenticatedIdentity stores the api-skeletons/zf-oauth2-doctrine AccessToken Doctrine entity. The AuthentiatedIdentity has the functions getUser(), getAccessToken(), getClient() which return entities. With these your application can continue to work with ORM through the rest of the request lifecycle.

api-skeletons/zf-oauth2-doctrine supports multiple OAuth2 configurations and api-skeletons/zf-oauth2-doctrine-identity searches through each configuration to find the AccessToken entity based on the access_token and client_id supplied by ZF\MvcAuth\Identity\AuthenticatedIdentity.

Authorization

The zf-mvc-auth Authorization Service is injected into the AuthenticatedIdentity. You may fetch the Authorization Service with $identity->getAuthorizationService(). There is a convenience method for ACL $identity->isAuthorized($resource, $privilege).

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

composer require api-skeletons/zf-oauth2-doctrine-identity

This will be added to your application's list of modules:

'modules' => array(
   ...
   'ZF\OAuth2\Doctrine\Identity',
),

统计信息

  • 总下载量: 56.72k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固