clickbar/laravel-validate-relative-signature

Middleware for validating relative signed url requests.

1.0.1 2019-10-22 13:27 UTC

This package is auto-updated.

Last update: 2024-11-23 01:01:05 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

In Laravel you can use the signed middleware URL to sign URLs for activation links etc.. There's also a undocumented relative parameter which makes it possible to sign relative URLs.

This is useful if you are using Laravel just as an API and host it somewhere else than your frontend. You can still use your pretty frontend URLs instead of those of the API.

e.g.: instead of signing https://example.com/activate-email you sign /activate-email.

Installation

You can install the package via composer:

composer require clickbar/laravel-validate-relative-signature

Usage

After installing the package is auto-discovered and you now have a signed.relative middleware to verify signed URLs with a relative URL.

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email avs@clickbar.rocks instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.