spomky-labs/oauth2-server-resource-owner-password-credentials-grant-type-bundle

此包已被废弃,不再维护。作者建议使用 spomky-labs/oauth2-server-bundle 包。

Symfony2 Resource Owner Password Credentials Grant Type Bundle for OAuth2 Server Bundle


README

Scrutinizer Code Quality Build Status HHVM Status PHP 7 ready

SensioLabsInsight

Latest Stable Version Total Downloads Latest Unstable Version License

此包在您的OAuth2服务器上添加了一个新的授权类型:资源所有者密码凭证授权类型。

它依赖于 OAuth2 Interfaces Project

发布流程

发布流程 在此描述

先决条件

此包需要至少 PHP 5.4Symfony v2.3

它已成功测试使用以下版本:

  • PHP: PHP 5.4PHP 5.6PHP 7HHVM
  • Symfony: v2.3.xv2.7.x

安装

安装此库的首选方式是依赖Composer

composer require "spomky-labs/oauth2-server-resource-owner-password-credentials-grant-type-bundle" "~5.0.0"

启用包

在内核中启用包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        ...
        new SpomkyLabs\OAuth2ServerResourceOwnerPasswordCredentialsGrantTypeBundle\SpomkyLabsOAuth2ServerResourceOwnerPasswordCredentialsGrantTypeBundle(),
    );
}

如何使用

有关更多信息,请参阅 此页面

贡献

对新功能、错误修复以及使此包更有用的所有其他想法的请求都欢迎。请 遵循这些最佳实践

许可

此包在 MIT 许可证下发布。