tradecoverexchange / google-cloud-jwt-validator
A package for validating Google Cloud's JWT provided by webhooks
Installs: 7 515
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.3|^8.0
- firebase/php-jwt: >=5.2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- kevinrob/guzzle-cache-middleware: ^3.3
- laravel/framework: ^8.0
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
- vimeo/psalm: ^4.3
README
A package for validating the authenticity of incoming Google Cloud requests such as those used by Google Cloud Tasks or Google Cloud Scheduler. Laravel supported.
Installation
You can install the package via composer:
composer require tradecoverexchange/google-cloud-jwt-validator
Usage
The only implementation so far is with Laravel. It can be used as a middleware to block requests without a valid JWT authentication token.
<?php // routes/web.php Route::get('/') ->middleware( \TradeCoverExchange\GoogleJwtVerifier\Laravel\AuthenticateByOidc::middleware('server_account_email@google.com') );
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
About Us
Trade Cover Exchange is a platform for insuring your trade with other companies, protecting you from instabilities in the supply chain.
We proudly use the Google Cloud platform for our service and hope to share more of our work with the developer community in the future.
Security
If you discover any security related issues, please email peter@tradecoverexchange.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.