Download the PHP package signifly/laravel-janitor without Composer
On this page you can find all versions of the php package signifly/laravel-janitor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download signifly/laravel-janitor
More information about signifly/laravel-janitor
Files in signifly/laravel-janitor
Package laravel-janitor
Short Description Easily add login proxy to your Laravel API.
License MIT
Homepage https://github.com/signifly/laravel-janitor
Informations about the package laravel-janitor
This project is no longer actively maintained.
Easily add login proxy to your Laravel API
The signifly/laravel-janitor
package allows you to easily add a login proxy to your Laravel API.
You can find two articles that walk you through getting started using:
Documentation
To get started you have to either install laravel/passport
or tymon/jwt-auth
. Please refer to their documentation for how to configure those packages.
NOTE: For now the supported versions for tymon/jwt-auth
is `1.0.0-rc.`.*
Installation
You can install the package via composer:
The package will automatically register itself.
You can optionally publish the config file with:
After pulling in the package and (optionally) publishing the config, then add the routes to your routes/api.php
file:
It will by default add routes for the following:
- login by username and password (/login)
- refresh current user access token (/login/refresh)
- log the user out (/logout)
- send password reset email (/password/email)
- reset password (/password/reset)
You can also define a specific set of routes by passing a Closure:
Finally, add JANITOR_DRIVER=driver-name
to your .env file.
The supported drivers are: passport
and jwt
.
NOTE: It does not support a default driver and throws an InvalidArgumentException
if omitted.
Resetting passwords
In order to use the reset password implementation in an API, you have to add a custom reset password notification to your user model.
The notification should format a correct link to your client app's reset password url.
Testing
Security
If you discover any security issues, please email [email protected] instead of using the issue tracker.
Credits
- Morten Poul Jensen
- All contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-janitor with dependencies
guzzlehttp/guzzle Version ^6.3|^7.0
illuminate/auth Version ~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/contracts Version ~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/database Version ~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/http Version ~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/routing Version ~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/support Version ~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0