opauth/live

Opauth的Live Connect策略

0.1.0 2012-08-08 16:45 UTC

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的多提供者身份验证框架。

入门指南

  1. 安装 Opauth-Live

    cd path_to_opauth/Strategy
    git clone git://github.com/opauth/live.git Live

    或者

    composer require opauth/live
  2. https://account.live.com/developers/applications 创建一个Live Connect应用程序

    • 一旦应用程序创建成功,请确保前往 我的应用 > API设置,将您的 重定向域名 定义为 http://path_to_opauth/live/oauth2callback.
  3. 配置 Opauth-Live 策略。

  4. 将用户引导到 http://path_to_opauth/live 进行身份验证

  5. 如果需要 email 字段,请将 wl.emails 添加到 LiveStrategy.php(第38行)中的作用域参数。例如,'scope' => 'wl.basic wl.emails'

策略配置

必需参数

<?php
'Live' => array(
  'client_id' => 'YOUR CLIENT ID',
  'client_secret' => 'YOUR CLIENT SECRET'
)

可选参数: scopestate

参考

许可证

Opauth-GitHub 采用MIT许可证
版权所有 © 2012 U-Zyn Chua (http://uzyn.com)