https://github.com/ethand91/omniauth-amazon-sp
Rails Omniauth Strategy for Amazon Selling Partner API
https://github.com/ethand91/omniauth-amazon-sp
amazon-sp aws omniauth rails ruby
Last synced: 3 months ago
JSON representation
Rails Omniauth Strategy for Amazon Selling Partner API
- Host: GitHub
- URL: https://github.com/ethand91/omniauth-amazon-sp
- Owner: ethand91
- Created: 2022-09-15T03:40:14.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-15T03:42:35.000Z (almost 4 years ago)
- Last Synced: 2025-01-23T01:33:01.145Z (over 1 year ago)
- Topics: amazon-sp, aws, omniauth, rails, ruby
- Language: Ruby
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Omniauth::AmazonSP
---
Login with Amazon SP OAuth 2 strategy for Omniauth.
---
## Installation
Add the following line to you Gemfile:
```bash
gem 'omniauth-amazon-sp'
```
Then run
```bash
bundle install
```
---
## Requirements
You must have an Amazon Selling Partner Account. As well as a Selling Partner Application.
---
## Configuration
You must have the following Rails credentials set:
```bash
amazon_sp_api:
app_id: [YOUR_APP_ID]
client_id: [YOUR_CLIENT_ID]
client_secret: [YOUR_CLIENT_SECRET]
version: beta (only if your app is in draft state)
```
Then you can set up the strategy via the following: (devise)
```ruby
config.omniauth :amazon-sp,
Rails.application.credentials.dig(:amazon_sp_api, :client_id),
Rails.application.credentials.dig(:amazon_sp_api, :client_secret),
name: :amazon
scope: %w(profile:user_id)
```