tradecoverexchange/google-cloud-jwt-validator

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

v1.2.0 2021-01-11 15:28 UTC

This package is auto-updated.

Last update: 2024-11-11 00:44:40 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status 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.