internacionalweb / cognito-token-verifier
This library verifies that the signature of the JWT is valid, comes from a desired application, and that the token has not been tampered with or expired.
Requires
- php: >=8.0
- firebase/php-jwt: ^6.3
Requires (Dev)
- dg/bypass-finals: ^1.4
- friendsofphp/php-cs-fixer: ^3.14
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.0
- symfony/var-dumper: ^6.2
- vlucas/phpdotenv: ^5.5
This package is auto-updated.
Last update: 2024-04-21 09:16:58 UTC
README
Cognito Token Verifier for PHP
About the Project
Cognito is a service provided by Amazon Web Services (AWS) that allows users to authenticate and access AWS resources through credentials such as ClientID and Secret, or username and password. After a user successfully authenticates, Cognito returns a JSON Web Token (JWT), which contains the main information required to verify that the user has accessed our application.
This library verifies that the signature of the JWT is valid, comes from a desired application, and that the token has not been tampered with or expired.
Getting Started
Installation
-
Install the library in your project using composer
composer require internacionalweb/cognito-token-verifier
-
Configure your project to use the library, check the Usage examples section for more information.
Usage examples:
Contributors:
Adrián Martín |
Jhonatan Matías |