Download the PHP package juniorfontenele/laravel-vault-client without Composer
On this page you can find all versions of the php package juniorfontenele/laravel-vault-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juniorfontenele/laravel-vault-client
More information about juniorfontenele/laravel-vault-client
Files in juniorfontenele/laravel-vault-client
Package laravel-vault-client
Short Description A vault client for Laravel vault server.
License MIT
Homepage https://github.com/juniorfontenele/laravel-vault-client
Informations about the package laravel-vault-client
Laravel Vault Client
Laravel Vault Client is a client for Laravel Vault Server provided by juniorfontenele/laravel-vault-server
package for secure key management, key rotation, JWT signing/validation, and secure user hash storage.
Installation
Install via composer:
Publish and run the migrations:
Artisan Commands
php artisan vault:install
— Publish and run the migrations.php artisan vault:provision {token}
— Provision the client in Vault using the provision token.php artisan vault:rotate
— Rotate the client's private key.
Usage Examples
Rotate Private Key
Get Public Key by Key ID
Get User Hash
Store User Password (hash will be generated)
Store User Hash (provide your own hash)
Delete User Hash
Protecting Routes with JWT Middleware
You can protect your routes using the vault.jwt
middleware:
You may also pass scopes as optional parameters to the middleware:
Configuration
The configuration file config/vault.php
will be published with all required options, such as client_id
, url
, issuer
, TTLs, etc.
Testing
Credits
- Junior Fontenele
- All Contributors
License
The MIT License (MIT). See License File for more information.
All versions of laravel-vault-client with dependencies
illuminate/support Version ^12
juniorfontenele/laravel-secure-jwt Version ^1.0