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
v5.0.0
2015-06-23 14:03 UTC
Requires
- spomky-labs/oauth2-server-client-manager-supervisor-bundle: ~5.0.0
- spomky-labs/oauth2-server-configuration-bundle: ~5.0.0
- spomky-labs/oauth2-server-exception-manager-bundle: ~5.0.0
- spomky-labs/oauth2-server-resource-owner-password-credentials-grant-type: ~5.0.0
- spomky-labs/oauth2-server-token-endpoint-bundle: ~5.0.0
Requires (Dev)
- behat/behat: 3.*
- behat/mink: *
- behat/mink-browserkit-driver: *
- behat/mink-extension: *
- behat/symfony2-extension: 2.0.x-dev
- doctrine/doctrine-fixtures-bundle: ~2.2
- doctrine/orm: >=2.2,<2.5-dev
- spomky-labs/oauth2-server-bearer-access-token-bundle: ~5.0.0
- spomky-labs/oauth2-server-password-client-bundle: ~5.0.0
- spomky-labs/oauth2-server-public-client-bundle: ~5.0.0
- spomky-labs/oauth2-server-scope-manager-bundle: ~5.0.0
- spomky-labs/oauth2-server-simple-string-access-token-bundle: ~5.0.0
- symfony/finder: ~2.3
- symfony/validator: ~2.3
- vipsoft/doctrine-data-fixtures-extension: 3.*@dev
This package is not auto-updated.
Last update: 2015-07-24 11:08:54 UTC
README
此包在您的OAuth2服务器上添加了一个新的授权类型:资源所有者密码凭证授权类型。
它依赖于 OAuth2 Interfaces Project。
发布流程
发布流程 在此描述。
先决条件
此包需要至少 PHP 5.4
和 Symfony v2.3
。
它已成功测试使用以下版本:
- PHP:
PHP 5.4
到PHP 5.6
,PHP 7
和HHVM
。 - Symfony:
v2.3.x
到v2.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 许可证下发布。