承接 dreitier/streamline-authentication 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱: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

dreitier/streamline-authentication 适用场景与选型建议

dreitier/streamline-authentication 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 111 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 11 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「Authentication」 「oauth」 「SSO」 「laravel」 「multitenant」 「socialite」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 dreitier/streamline-authentication 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 dreitier/streamline-authentication 我们能提供哪些服务?
定制开发 / 二次开发

基于 dreitier/streamline-authentication 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

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