Download the PHP package soumen-dey/api-authenticator without Composer
On this page you can find all versions of the php package soumen-dey/api-authenticator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download soumen-dey/api-authenticator
More information about soumen-dey/api-authenticator
Files in soumen-dey/api-authenticator
Package api-authenticator
Short Description A Laravel auth package for API authentication.
License MIT
Homepage https://github.com/soumen-dey/api-authenticator
Informations about the package api-authenticator
Authenticator
A Laravel package for API Authentication based on Laravel Passport.
Note: This package requires Laravel Passport to be installed.
Installation
Via Composer
Usage
Functionality
This package uses the default implementation for Auth that Laravel ships out of the box for validation and various other purposes.
So the validation, user table structure (except for the tokens part) should be similar for both web and api.
Note: This package uses the default model in the namespace. Feel free to modify the source code if you want to change this.
Adding the routes:
In your file, add the following:
This will add the required routes which are:
Note: Make sure that your request has these headers:
These are the API endpoints for authenticating users. The payload for these endpoints should be same as for the web auth, any extra payload depends on the application's logic.
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- Soumen Dey
- All Contributors
License
license. Please see the license file for more information.