GithubHelp home page GithubHelp logo

canalweststudio / omniauth-amazon-mws Goto Github PK

View Code? Open in Web Editor NEW

This project forked from machineboy2045/omniauth-amazon-mws

0.0 0.0 0.0 17 KB

OmniAuth Gem for Amazon Marketplace Web Services

License: MIT License

Ruby 100.00%

omniauth-amazon-mws's Introduction

OmniAuth::Amazon Marketplace Web Services (MWS)

Manage inventory for multiple sellers by connecting their accounts to your application.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-amazon-marketplace'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-amazon-marketplace

Prereqs

You must create an application via the Amazon App Console. Once that is complete, register two URLs under the Web Settings:

http://localhost:3000/auth/amazon/callback
http://your_website_here/auth/amazon/callback

Usage

The merchant will be taken to a URL generated from the developer credentials you supply. They will be asked if they want to allow your application access to their account. If they click "Yes", they will be returned to the callback address you specified in your developer account (refer to Prereqs). You can retrieve their info from request.env['omniauth.auth'] in your Rails controller callback action. For more detailed information about how to setup your callback function, refer to the main OmniAuth repo.

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :amazon, ENV['APP_ID'], ENV['AWS_ACCESS_KEY'], ENV['AWS_SECRET_ACCESS_KEY']
end

omniauth-amazon-mws's People

Contributors

machineboy2045 avatar mcrundo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.