tradecoverexchange/google-cloud-jwt-validator

A package for validating Google Cloud's JWT provided by webhooks


Keywords
JSON Web Token, google cloud, trade cover exchange
License
MIT

Documentation

Google Cloud JWT Authentication

Latest Version on Packagist GitHub Tests Action Status Scrutinizer Code Quality Code Coverage Total Downloads

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

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.