PHPackages                             kirschbaum-development/laravel-socialite-cognito - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. kirschbaum-development/laravel-socialite-cognito

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

kirschbaum-development/laravel-socialite-cognito
================================================

A custom AWS Cognito driver for Laravel Socialite

0.0.1(4y ago)765MITPHPPHP ^7.3

Since Jun 17Pushed 4y ago14 watchersCompare

[ Source](https://github.com/kirschbaum-development/laravel-socialite-cognito)[ Packagist](https://packagist.org/packages/kirschbaum-development/laravel-socialite-cognito)[ RSS](/packages/kirschbaum-development-laravel-socialite-cognito/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel package to store historical data
========================================

[](#laravel-package-to-store-historical-data)

[![Latest Version on Packagist](https://camo.githubusercontent.com/82374e84cbaac29118fe571bb133f228e85b61c0b5adb161e8683faea1430cc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b69727363686261756d2d646576656c6f706d656e742f6c61726176656c2d736f6369616c6974652d636f676e69746f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kirschbaum-development/laravel-socialite-cognito)[![GitHub Tests Action Status](https://camo.githubusercontent.com/fc0bf415a3be776457f08ca295bd67a992bf8b86ce7808a3e61eca68c34eb247/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6b69727363686261756d2d646576656c6f706d656e742f6c61726176656c2d736f6369616c6974652d636f676e69746f2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/kirschbaum-development/laravel-socialite-cognito/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/15d1a58c609d5db94a66b4e8a38700ce623b1c6a85c0981dbd020ab93cb728b4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6b69727363686261756d2d646576656c6f706d656e742f6c61726176656c2d736f6369616c6974652d636f676e69746f2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/kirschbaum-development/laravel-socialite-cognito/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/138009043d3a81fea833501d7a53815b95d68c337396d3c645a2e241cd37ddff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b69727363686261756d2d646576656c6f706d656e742f6c61726176656c2d736f6369616c6974652d636f676e69746f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kirschbaum-development/laravel-socialite-cognito)

This package is a custom AWS Cognito driver for Laravel Socialite.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require kirschbaum-development/laravel-socialite-cognito
```

Usage
-----

[](#usage)

Once you install the package, add the next config values in you `config/services.php` configuration file:

```
'cognito' => [
    'base_uri' => env('COGNITO_URI'),
    'client_id' => env('COGNITO_CLIENT_ID'),
    'client_secret' => env('COGNITO_CLIENT_SECRET'),
    'redirect' => env('COGNITO_REDIRECT_URI'),
],
```

Then, you can use the driver as you would use it in the Laravel Socialite's official [documentation](https://laravel.com/docs/8.x/socialite). Use `cognito` keyword when you want to instantiate the driver:

```
$user = Socialite::driver('cognito')->user();
```

The default scopes are:

```
$scopes = [
    'openid',
    'profile',
    'aws.cognito.signin.user.admin',
];
```

You can add more scopes or override the default ones by using `scopes` or `setScopes` methods like the official documentation shows ([link](https://laravel.com/docs/8.x/socialite#access-scopes))

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover any security related issues, please email  or  instead of using the issue tracker.

Sponsorship
-----------

[](#sponsorship)

Development of this package is sponsored by Kirschbaum Development Group, a developer driven company focused on problem solving, team building, and community. Learn more [about us](https://kirschbaumdevelopment.com) or [join us](https://careers.kirschbaumdevelopment.com)!

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1791d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f56743d64d77958321d43b2df49e9696d19c9dd99995730c5c38ccae50408fa?d=identicon)[Kirschbaum](/maintainers/Kirschbaum)

---

Top Contributors

[![guetteluis](https://avatars.githubusercontent.com/u/35845741?v=4)](https://github.com/guetteluis "guetteluis (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kirschbaum-development-laravel-socialite-cognito/health.svg)

```
[![Health](https://phpackages.com/badges/kirschbaum-development-laravel-socialite-cognito/health.svg)](https://phpackages.com/packages/kirschbaum-development-laravel-socialite-cognito)
```

###  Alternatives

[socialiteproviders/manager

Easily add new or override built-in providers in Laravel Socialite.

42442.0M544](/packages/socialiteproviders-manager)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

213914.9k9](/packages/dutchcodingcompany-filament-socialite)[andrewdwallo/filament-companies

A comprehensive Laravel authentication and authorization system designed for Filament, focusing on multi-tenant company management.

34450.0k2](/packages/andrewdwallo-filament-companies)[devdojo/auth

The auth package to make authentication in your laravel applications easy to use.

61979.4k2](/packages/devdojo-auth)[genealabs/laravel-socialiter

Automatically manage user persistence and resolution for any Laravel Socialite provider.

133403.3k](/packages/genealabs-laravel-socialiter)[chrisreedio/socialment

Provides Socialite functionality for Filament.

10884.8k1](/packages/chrisreedio-socialment)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
