laravel-api-server/authentication

This project holds the Authentication module for the API-Server.

1.0.0 2017-04-10 16:29 UTC

This package is not auto-updated.

Last update: 2024-05-03 19:01:31 UTC


README

This project holds the Authentication module for the Laravel API-Server. It provides token based authentication using JWT.

Installation

Add the following to your env file:

# JWT private key (usually autogenerated)
JWT_SECRET=YPNdFz7wlJH3u237P97ZGmvP2Kc7MHAh

For authentication add this to the $routeMiddleware-attribute of your app/Http/Kernel.php-file:

        'auth.jwt' => \ApiServer\Authentication\Http\Middleware\AuthenticateJwt::class,

Depencies

Documentation

Contributing

Submitting patches

Patches can be submitted using the Merge-Request link of our Gitlab.

License

See License