opauth/amazon

Amazon strategy for Opauth

0.4 2014-07-03 13:58 UTC

This package is not auto-updated.

Last update: 2024-03-26 04:41:42 UTC


README

Opauth strategy for Amazon authentication.

Implemented based on https://login.amazon.com/documentation

Opauth is a multi-provider authentication framework for PHP.

Getting started

  1. Install Opauth-Amazon:

    cd path_to_opauth/Strategy
    git clone git://github.com/ragulka/opauth-amazon.git Amazon
  2. Create a Amazon application at App Console https://login.amazon.com/manageApps

    • Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually https://path_to_opauth/auth/amazon/oauth2callback
  3. Configure Opauth-Amazon strategy.

  4. Direct user to http://path_to_opauth/auth/amazon to authenticate

Strategy configuration

Required parameters:

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

Optional parameters: scope, redirect_uri

References

License

Opauth-Amazon is MIT Licensed Copyright © 2014 Illimar Tambek (http://github.com/ragulka)