opauth/amazon

Opauth 的 Amazon 认证策略

0.4 2014-07-03 13:58 UTC

This package is not auto-updated.

Last update: 2024-09-10 07:02:07 UTC


README

Amazon 认证的 Opauth 策略。

基于 https://login.amazon.com/documentation 实现

Opauth 是一个 PHP 的多提供者认证框架。

入门指南

  1. 安装 Opauth-Amazon

    cd path_to_opauth/Strategy
    git clone git://github.com/ragulka/opauth-amazon.git Amazon
  2. 在 App Console 创建 Amazon 应用 https://login.amazon.com/manageApps

    • 确保重定向 URI 设置为实际的 OAuth 2.0 回调 URL,通常是 https://path_to_opauth/auth/amazon/oauth2callback
  3. 配置 Opauth-Amazon 策略。

  4. 直接将用户导向 http://path_to_opauth/auth/amazon 进行认证

策略配置

必填参数

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

可选参数:scoperedirect_uri

参考

许可证

Opauth-Amazon 基于 MIT 许可证 版权 © 2014 Illimar Tambek (http://github.com/ragulka)