yomafleet / cognito-authenticator
Authentication with AWS Cognito for Laravel project
Installs: 3 795
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 3
Requires
- php: ^7.3|^8.0
- aws/aws-sdk-php: ^3.261
- codercat/jwk-to-pem: ^1.1
- firebase/php-jwt: ^6.3
- guzzlehttp/guzzle: ^7.5
- illuminate/support: ^8.0
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2024-11-07 11:43:12 UTC
README
Install
- install with composer
composer require laravel-cognito-authenticator
- set the 'driver' option of the 'guards' in 'config/auth.php' to 'cognito'
[ 'api' => [ 'driver' => 'cognito', 'provider' => 'users', 'hash' => false, ], ]
- Note that this package will add 2 new columns to users table, named: 'sub' and 'identities'
Testing
$ ./vendor/bin/phpunit
License
The MIT License (MIT). Please see License File for more information.