New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

revolution/socialite-amazon

Socialite for Login with Amazon
190,252 13
Install
composer require revolution/socialite-amazon
Latest Version:1.2.2
PHP:^8.0
Laravel:6 – 13
License:MIT
Last Updated:Jul 25, 2026
Links: GitHub  ·  Packagist
Maintainer: revolution

Socialite for Login with Amazon

https://developer.amazon.com/apps-and-games/login-with-amazon

Overview

This package provides a Laravel Socialite provider for Login with Amazon, allowing you to easily add Amazon OAuth authentication to your Laravel applications. It extends Laravel Socialite with support for Amazon's OAuth 2.0 service, enabling users to log in using their Amazon accounts.

Key Features:

  • Seamless integration with Laravel Socialite
  • Support for Amazon OAuth 2.0 authentication flow
  • Customizable OAuth scopes (profile, postal_code, etc.)
  • Retrieves user profile information from Amazon

Requirements

  • PHP >= 8.0

No version restrictions. It may stop working in future versions.

Installation

composer require revolution/socialite-amazon

config/services.php

    'amazon' => [
        'client_id'     => env('AMAZON_LOGIN_ID'),
        'client_secret' => env('AMAZON_LOGIN_SECRET'),
        'redirect'      => env('AMAZON_LOGIN_REDIRECT'),
    ],

.env

To obtain the required credentials, visit the Amazon Developer Console and create a Login with Amazon application: https://developer.amazon.com/apps-and-games/login-with-amazon

AMAZON_LOGIN_ID=
AMAZON_LOGIN_SECRET=
AMAZON_LOGIN_REDIRECT=

Usage

routes/web.php

Route::get('/', [AmazonController::class, 'index']);
Route::get('callback', [AmazonController::class, 'callback']);

AmazonController

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Laravel\Socialite\Facades\Socialite;

class AmazonController extends Controller
{
    public function index()
    {
        return Socialite::driver('amazon')->redirect();
    }

    public function callback()
    {
        $user = Socialite::driver('amazon')->user();
        dd($user);
    }
}

LICENCE

MIT

Related Packages

revolution/laravel-amazon-product-api

Amazon Product Advertising API for Laravel

56,681 80
cali/socialite

Laravel extension for OAuth libraries

26 0
revolution/socialite-mastodon

Socialite for Mastodon

307,023 13
trwl/socialite-mastodon

Socialite for Mastodon

56,163 0
revolution/socialite-wordpress

Socialite for WordPress

13,857 4

Version History

Version Released PHP License
1.2.2 ^8.0 MIT
1.2.1 ^8.0 MIT
1.2.0 ^8.0 MIT
1.1.3 ^7.2||^8.0 MIT
1.1.2 ^7.2 MIT