Skip to content

A package for validating the authenticity of incoming Google Cloud requests. Laravel supported.

License

Notifications You must be signed in to change notification settings

tradecoverexchange/google-cloud-jwt-validator

Repository files navigation

Google Cloud JWT Authentication

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.

About

A package for validating the authenticity of incoming Google Cloud requests. Laravel supported.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages