t1mmen / opauth-freckle
Freckle的Opauth策略
1.0
2016-03-17 01:11 UTC
Requires
- php: >=5.2.0
- opauth/opauth: >=0.4.0
This package is not auto-updated.
Last update: 2024-09-26 00:24:46 UTC
README
Opauth为Freckle身份验证提供的策略。
基于http://developer.letsfreckle.com/v2/authentication/实现
入门
-
安装Opauth-Freckle
使用git
cd path_to_opauth/Strategy git clone https://github.com/t1mmen/opauth-freckle.git freckle
或者,使用Composer,只需将其添加到您的composer.json
{
"require": {
"t1mmen/opauth-freckle": "*"
}
}
然后运行composer install。
-
从您的Freckle账户注册一个自定义应用。
-
至少配置
Client ID和Client Secret来配置Opauth-Freckle策略。 -
将用户直接引导到
http://path_to_opauth/freckle进行身份验证
策略配置
必需参数
<?php 'Freckle' => array( 'client_id' => 'YOUR CLIENT ID', 'client_secret' => 'YOUR CLIENT SECRET', 'redirect_uri' => 'SAME AS YOUR FRECKLE OAUTH APP REDIRECT_URI' )
许可证
Opauth-Freckle遵循MIT许可证版权所有 © 2016 Timm Stokke (http://timm.stokke.me)