Download the PHP package asseco-voice/laravel-jwt-authentication without Composer
On this page you can find all versions of the php package asseco-voice/laravel-jwt-authentication. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download asseco-voice/laravel-jwt-authentication
More information about asseco-voice/laravel-jwt-authentication
Files in asseco-voice/laravel-jwt-authentication
Package laravel-jwt-authentication
Short Description Package to decode and verify JWT tokens
License MIT
Informations about the package laravel-jwt-authentication
Laravel JWT Authentication
This package enables backend authentication via JWT-token
Installation
Install the package through composer. It is automatically registered as a Laravel service provider, so no additional actions are required to register the package.
In order to gain access to additional configuration run
This will publish the asseco-authentication.php configuration file into your config directory
Quick usage
A minimal requirement to make the package work is to set the in your .env file. This is the location of the public key with which the package will verify the signature of the token.
The package works out-of-the-box. Once installed the application will have a new guard registered.
Activating it on your desired route follows the standard laravel implementation.
This will force the framework to use the following configuration to resolve the user from a JWT-token and injecting it as the authenticated user.
The public.pem key will be fetched on the first incoming request from the configured
Fetch key command
Package comes with a convenience command. The only requirement is the env value .
The method is made to hit the configured endpoint and extract the public key from the response.
By default, the command will look for the key public_key
in the response, however this can
be configured through a config file.
All versions of laravel-jwt-authentication with dependencies
ext-json Version *
laravel/framework Version ^10.0
lcobucci/jwt Version ^4.0
guzzlehttp/guzzle Version ^7.0