spomky-labs/oauth2-server-token-endpoint-bundle

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

Symfony2 OAuth2 服务器令牌端点包


README

Scrutinizer Code Quality Build Status HHVM Status PHP 7 ready

SensioLabsInsight

Latest Stable Version Total Downloads Latest Unstable Version License

此包为您的 OAuth2 服务器提供令牌端点。

它依赖于OAuth2 接口项目

发布流程

发布流程在这里描述

先决条件

此包需要至少 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-token-endpoint-bundle" "~5.0.0"

启用包

在内核中启用包

<?php
// app/AppKernel.php

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

配置

sl_oauth2_token_endpoint:
    client_manager_supervisor: my_client_manager_supervisor # The client manager supervisor
    access_token_type: my_access_token_type # The access token type (Bearer, MAC...)
    access_token_manager: my_access_token_manager # The access token manager (Simple String, JWT...)
    scope_manager: my_scope_manager # The scope manager
    end_user_manager: my_end_user_manager # The end user manager
    refresh_token_manager: my_refresh_token_manager # (optionnal) The refresh token manager. Not needed if refresh tokens are not used

如何使用

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

贡献

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

许可证

此包在MIT 许可证下发布。