opauth / live
Opauth的Live Connect策略
0.1.0
2012-08-08 16:45 UTC
Requires
- php: >=5.2.0
- opauth/opauth: >=0.2.0
This package is auto-updated.
Last update: 2024-09-13 10:26:41 UTC
README
Opauth 的 (Microsoft) Live Connect 身份验证策略。
令人困惑的是,Live Connect也被称为
- Windows Live
- Microsoft Passport
- Live ID
- MSN ID
Opauth 是一个适用于PHP的多提供者身份验证框架。
入门指南
-
安装 Opauth-Live
cd path_to_opauth/Strategy git clone git://github.com/opauth/live.git Live
或者
composer require opauth/live
-
在 https://account.live.com/developers/applications 创建一个Live Connect应用程序
- 一旦应用程序创建成功,请确保前往 我的应用 > API设置,将您的 重定向域名 定义为
http://path_to_opauth/live/oauth2callback.
- 一旦应用程序创建成功,请确保前往 我的应用 > API设置,将您的 重定向域名 定义为
-
配置 Opauth-Live 策略。
-
将用户引导到
http://path_to_opauth/live
进行身份验证 -
如果需要
email
字段,请将wl.emails
添加到LiveStrategy.php
(第38行)中的作用域参数。例如,'scope' => 'wl.basic wl.emails'
。
策略配置
必需参数
<?php 'Live' => array( 'client_id' => 'YOUR CLIENT ID', 'client_secret' => 'YOUR CLIENT SECRET' )
可选参数: scope
、state
参考
许可证
Opauth-GitHub 采用MIT许可证
版权所有 © 2012 U-Zyn Chua (http://uzyn.com)