Download the PHP package graphene-ict/laravel-cognito-guard without Composer
On this page you can find all versions of the php package graphene-ict/laravel-cognito-guard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download graphene-ict/laravel-cognito-guard
More information about graphene-ict/laravel-cognito-guard
Files in graphene-ict/laravel-cognito-guard
Package laravel-cognito-guard
Short Description Laravel authentication guard to validate JSON Web Tokens (JWT) issued by an AWS Cognito User Pool
License MIT
Homepage https://github.com/GrapheneICT/laravel-cognito-guard
Informations about the package laravel-cognito-guard
Laravel Cognito Guard
Laravel authentication guard to validate JSON Web Tokens (JWT) issued by an AWS Cognito User Pool
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Since persist_user_data
is true
by default user will be automatically saved with the following attributes: name, email, provider and provider_id
so
adding them in the list of fillables is a must. If you wish to extend with more attributes using the class CognitoService
modify the data before it is saved or use the events.
Usage
In configauth
create additional guard with the coginto driver
After that just apply it to the Authentication Defaults as option for authentication shown bellow
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-cognito-guard with dependencies
aws/aws-sdk-php Version ^3.235
firebase/php-jwt Version ^6.3
fruitcake/laravel-cors Version ^2.0
guzzlehttp/guzzle Version ^7.0.1
lcobucci/jwt Version ^4.2
phpseclib/phpseclib Version ^3.0