t1mmen / opauth-trello
Opauth 的 Trello 策略
0.1
2015-03-26 08:31 UTC
Requires
- php: >=5.2.0
- opauth/opauth: >=0.2.0
- themattharris/tmhoauth: >=0.8.4
This package is not auto-updated.
Last update: 2024-09-14 17:26:35 UTC
README
Opauth 的 Trello 认证策略。
基于 https://trello.com/docs/index.html 实现
入门指南
-
安装 Opauth-Trello
使用 git
cd path_to_opauth/Strategy git clone https://github.com/t1mmen/opauth-trello.git Trello
或者,使用 Composer,只需在您的 composer.json
中添加以下内容
{ "require": { "t1mmen/opauth-trello": "*" } }
然后运行 composer install
。
-
在 https://trello.com/1/appKey/generate 创建 Trello 应用程序
-
至少配置
Key
和Secret
以配置 Opauth-Trello 策略。 -
将用户直接导向
http://path_to_opauth/trello
进行认证
策略配置
必需参数
<?php 'Trello' => array( 'key' => 'YOUR CLIENT KEY', 'secret' => 'YOUR CLIENT SECRET', // Optionally, specify: 'name' => 'YOUR APP NAME (appears in auth screen)', 'expiration' => 'never', 'scope' => 'read,write' )
许可证
Opauth-Trello 是 MIT 许可协议,版权所有 © 2015 Timm Stokke (http://timm.stokke.me)