All Projects → signifly → Laravel Janitor

signifly / Laravel Janitor

Licence: mit
🔑 Easily add login proxy to your Laravel API

Projects that are alternatives of or similar to Laravel Janitor

Laravel Api Boilerplate
A Boilerplate Project For Laravel API's (NOT MAINTAINED)
Stars: ✭ 113 (+109.26%)
Mutual labels:  hacktoberfest, laravel, jwt-auth
Laravel template with vue
laravel5.5和vue.js结合的前后端分离项目模板,后端使用了laravel的LTS版本(5.5),前端使用了流行的vue-element-template项目。作为程序的起点,可以直接以此为基础来进行业务扩展。模板内容包括基础的用户管理和权限管理、日志管理、集成第三方登录,整合laravel-echo-server 实现了websocket 做到了消息的实时推送,并在此基础上,实现了聊天室和客服功能。权限管理包括后端Token认证和前端vue.js的动态权限,解决了前后端完整分离的情况下,vue.js的认证与权限相关的痛点,已在本人的多个项目中集成使用。
Stars: ✭ 763 (+1312.96%)
Mutual labels:  laravel, passport
Platform
A modular multilingual CMS built with Laravel 5.
Stars: ✭ 719 (+1231.48%)
Mutual labels:  hacktoberfest, laravel
Tenancy
Run multiple websites using the same Laravel installation while keeping tenant specific data separated for fully independent multi-domain setups.
Stars: ✭ 916 (+1596.3%)
Mutual labels:  hacktoberfest, laravel
Laravel Boilerplate
Laravel Boilerplate / Starter Kit with Gentelella Admin Theme
Stars: ✭ 704 (+1203.7%)
Mutual labels:  hacktoberfest, laravel
Artisan View
👀 Manage your views in Laravel projects through artisan
Stars: ✭ 708 (+1211.11%)
Mutual labels:  hacktoberfest, laravel
Angular5.2 Laravel5.6
Angular 5.2 and Laravel 5.6 Authentication and CRUD
Stars: ✭ 17 (-68.52%)
Mutual labels:  laravel, passport
Tenanti
[Package] Multi-tenant Database Schema Manager for Laravel
Stars: ✭ 525 (+872.22%)
Mutual labels:  hacktoberfest, laravel
Sentry Laravel
Laravel SDK for Sentry
Stars: ✭ 927 (+1616.67%)
Mutual labels:  hacktoberfest, laravel
Node Openid Client
OpenID Certified™ Relying Party (OpenID Connect/OAuth 2.0 Client) implementation for Node.js.
Stars: ✭ 887 (+1542.59%)
Mutual labels:  hacktoberfest, passport
Laravel Jwt
Laravel with JWT Authentication for API development
Stars: ✭ 31 (-42.59%)
Mutual labels:  laravel, jwt-auth
Laravel Translatable
A Laravel package for multilingual models
Stars: ✭ 624 (+1055.56%)
Mutual labels:  hacktoberfest, laravel
Core
Simple forum software for building great communities.
Stars: ✭ 5,372 (+9848.15%)
Mutual labels:  hacktoberfest, laravel
Orm
A drop-in Doctrine ORM 2 implementation for Laravel 5+ and Lumen
Stars: ✭ 712 (+1218.52%)
Mutual labels:  hacktoberfest, laravel
Laravel Mediable
Laravel-Mediable is a package for easily uploading and attaching media files to models with Laravel 5.
Stars: ✭ 541 (+901.85%)
Mutual labels:  hacktoberfest, laravel
Laravel Adminpanel
A Laravel Admin Panel (Laravel Version : 6.0)
Stars: ✭ 774 (+1333.33%)
Mutual labels:  hacktoberfest, laravel
Laravel Weather
🌤️ A wrapper around Open Weather Map API (Current weather)
Stars: ✭ 36 (-33.33%)
Mutual labels:  hacktoberfest, laravel
Laravel Medialibrary
Associate files with Eloquent models
Stars: ✭ 4,743 (+8683.33%)
Mutual labels:  hacktoberfest, laravel
Laravel Dompdf
A DOMPDF Wrapper for Laravel
Stars: ✭ 4,978 (+9118.52%)
Mutual labels:  hacktoberfest, laravel
Laravel Sri
Subresource Integrity hash generator for laravel
Stars: ✭ 23 (-57.41%)
Mutual labels:  hacktoberfest, laravel

Easily add login proxy to your Laravel API

Latest Version on Packagist Build Status StyleCI Quality Score Total Downloads

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:

composer require signifly/laravel-janitor

The package will automatically register itself.

You can optionally publish the config file with:

php artisan vendor:publish --tag="janitor-config"

After pulling in the package and (optionally) publishing the config, then add the routes to your routes/api.php file:

Janitor::routes();

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:

Janitor::routes(function ($router) {
    // Login and logout routes
    $router->forAuthentication();

    // Password reset routes
    $router->forPasswordReset();
});

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.

// App\User.php

/**
 * Send the password reset notification.
 *
 * @param  string  $token
 * @return void
 */
public function sendPasswordResetNotification($token)
{
    $this->notify(new ResetPasswordNotification($token));
}

The notification should format a correct link to your client app's reset password url.

Testing

composer test

Security

If you discover any security issues, please email [email protected] instead of using the issue tracker.

Credits

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].