dreitier/streamline-authentication 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dreitier/streamline-authentication

Composer 安装命令:

composer require dreitier/streamline-authentication

包简介

Common authentication methods for multi-tenant Laravel apps

README 文档

README

Common authentication methods for multi-tenant Laravel apps.

Features

  • Provide common authentication methods
    • Form-based logins with principal (e.g. username, email) and password
    • Password-less logins by sending emails with a magic login link
    • Logins by selecting pre-defined users for demo/e2e environments
    • Socialite integration for OAuth
  • Targeted for developers of multi-tenant Laravel SaaS/on-premises applications
    • Activation of different authentication methods for only specific groups of customers
    • Configurable authentication methods per tenant
    • Users can log in through different Socialite drivers in the same tenant

When to go with Streamline Authentication instead of Laravel Fortify?

For the most Laravel applications, Fortify implements all required authentication workflows in a much easier and Laravel-esk way. If you need password-based authentication with optional 2FA enabled, and a registration and password recovery workflow you should go probably go with Fortify. If you need a more configurable and dynamic way of enabling and configuring different authentication methods throughout different tenants, Streamline Authentication might be an option for you.

Installation

Install the composer package and publish the required configuration:

composer require dreitier/streamline-authentication

php artisan vendor:publish --provider=Dreitier\\Streamline\\Authentication\\StreamlineAuthenticationServiceProvider --tag=config

Custom views

If you want to customize the views and mails, publish the assets with

php artisan vendor:publish --provider=Dreitier\\Streamline\\Authentication\\StreamlineAuthenticationServiceProvider --tag=assets

You find the customized assets below resources/views/vendor/streamline-authentication.

Custom routes

By default, Streamline Authentication registers the authentication method flows at the /sign-in endpoint. Only enabled authentication methods are registered.

If you want to publish the routes by yourself, use

php artisan vendor:publish --provider=Dreitier\\Streamline\\Authentication\\StreamlineAuthenticationServiceProvider --tag=routes

and set in config/streamline-authentication.php:

return [
    // ...
    'routes' => false
    // ...
];

Configuration

config/streamline-authentication.php contains annotated configuration options.

Terminology

Term Description
Authentication method Like form-based authentication, Socialite etc.
Authentication provider Provides the configuration for an authentication method of a given backend

FAQ

统计信息

  • 总下载量: 111
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固