Download the PHP package bencolmer/laravel-fit-validator without Composer
On this page you can find all versions of the php package bencolmer/laravel-fit-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-fit-validator
Laravel FIT Validator
This package allows you to validate and use Atlassian Forge Invocation Tokens (FITs) in Laravel.
Installation
-
Install the package via composer:
-
Configure
.envvalues: - Add the
fitmiddleware to any routes that should validate Forge Invocation Tokens.
Token Usage
The fit middleware will validate the Forge Invocation Token and add the validated payload to the request input array.
Example:
Advanced Usage
You can configure the package to validate FIT tokens from multiple Forge applications:
-
Publish package configuration
-
Add your Forge application details to the
applicationsarray inconfig/fit.php: - Update the
fitmiddleware to use the configuration for your new application
Additional Configuration
The following options can also be modified by publishing the package configuration:
| Name | Default Value | Description |
|---|---|---|
middlewareAlias |
fit |
The alias for the FIT validation middleware |
issuer |
forge/invocation-token |
The expected Forge Invocation Token issuer |
jwksCacheDuration |
5 minutes | The cache duration for fetched JSON Web Key Sets. Setting this to null will disable caching |
Testing
Run tests via PHPUnit:
Credits
License
Laravel FIT Validator is open-sourced software licensed under the MIT license.
All versions of laravel-fit-validator with dependencies
firebase/php-jwt Version ^7.0
guzzlehttp/guzzle Version ^7.10
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0