承接 spirit-dev/oauth2-server-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

spirit-dev/oauth2-server-bundle

最新稳定版本:0.6

Composer 安装命令:

composer require spirit-dev/oauth2-server-bundle

包简介

Symfony OAuth2 Bundle server side

README 文档

README

Introduction

OAuth2ServerBundle is an OAuth2 flow manager. Define your API grants, your rendering template and thats all. It manages for you token flows from OAuth2 Protocol. It also provides a direct login to API side. Take a look to the following to get started with OAuth2ServerBundle ;)

Note

The actual version is designed for Symfony 2.6. Upper Symfony versions may have issues.

Installation

Installation is a quick 3 steps process:

  1. Download SpiritDevOAuth2ServerBundle
  2. Enable the Bundle
  3. Configure the SpiritDevOAuth2ServerBundle

Step 1: Install SpiritDevOAuth2ServerBundle

The preferred way to install this bundle is to rely on Composer. Just check on Packagist the version you want to install (in the following example, we used "dev-master") and add it to your composer.json:

{
    "require": {
        // ...
        "spirit-dev/oauth2-server-bundle": "dev-master"
    }
}

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
            new SpiritDev\Bundle\OAuth2ServerBundle\SpiritDevOAuth2ServerBundle(),
    );
}

Step 3: Configure SpiritDevOAuth2ServerBundle

Add SpiritDevOAuth2ServerBundle settings in app/config/config.yml:

# app/config/config.yml

# Doctrine Configuration
doctrine:
    ...
    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        auto_mapping: true
        resolve_target_entities:
            # Acme\DemoBundle\Entity\User represents the User class you want to be used by Spirit-Dev Oauth2 Server bundle
            # Don't change SpiritDev\Bundle\OAuth2ServerBundle\Model\UserSubjectInterface
            SpiritDev\Bundle\OAuth2ServerBundle\Model\UserSubjectInterface: Acme\DemoBundle\Entity\User

# Spirit-Dev OAuth2 configuration
spirit_dev_o_auth2_server:
    spiritdev_oauth_settings:
        user_class: Acme\DemoBundle\Entity\User
        user_provider: Acme\DemoBundle\Provider\UserProvider

Define Routing settings like the following in app/config/routing.yml

...
spiritdev_oauth_server_auth_login:
    pattern:  /oauth/v2/auth_login
    defaults: { _controller: SpiritDevOAuth2ServerBundle:Security:login }

spiritdev_oauth_server_auth_login_check:
    pattern:  /oauth/v2/auth_login_check
    defaults: { _controller: SpiritDevOAuth2ServerBundle:Security:loginCheck }

Simulating a token granting (comming soon)

Next steps

Now that you have completed the basic installation and configuration of the SpiritDevO-Auth2ServerBundle, you are ready to learn about more advanced features and usages of the bundle.

The following documents are available:

spirit-dev/oauth2-server-bundle 适用场景与选型建议

spirit-dev/oauth2-server-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 51 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「security」 「oauth2」 「server」 「Spirit-Dev」 「Auto provider」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 spirit-dev/oauth2-server-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 spirit-dev/oauth2-server-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 spirit-dev/oauth2-server-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 51
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 23
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-v2
  • 更新时间: 2015-03-06