adamlundrigan/ldc-oauth2-crypto-token

为 zf-oauth2 提供的 JWT CryptoToken 配置

2.0.0 2015-03-28 16:37 UTC

This package is not auto-updated.

Last update: 2024-09-24 04:05:28 UTC


README

重新配置zf-oauth2以发布JWT 访问令牌

Latest Stable Version License Build Status Code Coverage Scrutinizer Code Quality

如何操作?

  1. 使用 Composer 安装模块

    composer require adamlundrigan/ldc-oauth2-crypto-token:~2.0
    

    注意:如果您的应用程序需要 bshaffer/oauth2-server-php 版本 < 1.6,请使用本模块的 V1 版本。

  2. 在您的 application.config.php 文件中启用所需的模块

    • ZF\OAuth2
    • LdcOAuth2CryptoToken
  3. 您需要一个 RSA 公钥/私钥对。如果您还没有,请参考此页面的"创建公钥和私钥对"部分

  4. 将配置文件 ldc-oauth2-crypto-token.local.php.dist 复制到 config/autoload