定制 vishwac09/authzero 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

vishwac09/authzero

Composer 安装命令:

composer require vishwac09/authzero

包简介

Integrate Drupal 9/10 website with the Auth0 Single Sign-On (SSO) platform.

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

Usage

Integrate Drupal 9.5/10 website with the Auth0 Single Sign-On (SSO) platform.

Motivation

The Auth0 team has announced the retirement of their official Drupal 8 module. The Github repository will be available until March 8, 2022, after which it will be removed. The auth0 team recommends using the OpenID Connect / OAuth client drupal module as an alternative.

There was a need to include similar functionality in one of the project, but as the official module is deprecated we decided to write this module and make it public.

I would request to download the module and then customize it to fit the needs of their project. There will be no security audits or third-party testing for this module, so treat it as you would write a custom module developed for your project.

If you wish to go through the working of this module or how Auth0 SSO works check my blog Drupal 8/9: Integrating with auth0 on Medium.

Version

Active releases and their compatibility.

Version Drupal Recommended Docs
3.0.x 9.5 and above Yes Docs
2.0.x >=8.x <=10.x Yes Docs
1.0.x >= 8.x <= 10.x No Docs

Getting Started (v3.0.x)

The Drupal "authzero" module works only with Drupal Core version 9.5 and above. It requires the "auth0/auth0-php" version "8.10.1" of the library, which is added as a dependency in the drupal module composer.json file. Installing the drupal module will automatically install the correct version of the "auth0/auth0-php" library.

Table of Contents

Upgrading to 3.0.0

Version 3.0.0 is a complete rewrite / new implementation of the authzero drupal module. In the new version all the module settings are now stored using the "State API" and not as "Config API", this was done to avoid exporting "sensitive" auth0 credentials as config. New fields added in the settings form, allows for better control over the user actions viz. Login, Logout etc.

Important Notes when migrating to 3.0.0.

  1. Backup all the credentials.
  2. Uninstall the module older version any of "v2.0.0", "v1.0.5".
  3. Remove the "auth0/auth0-php:7.5" version library.
  4. Install the module and add the required info again.

Install

Get from Github

Navigate to your site's modules directory and clone this repo:

$ cd PATH/TO/DRUPAL/ROOT/modules
$ git clone https://github.com/vishwac09/authzero.git authzero
$ composer install

Get from Packagist with Composer

From the root of your Drupal project run the below command. Link to Packagist

$ composer require vishwac09/authzero:3.0.0

Module Settings

The modules come with a settings form. To use it, go to https://SITE_DOMAIN/admin/config/auth0/settings and fill it out with all the necessary information. The authzero module won't function properly without it.

Notes

The module does not login any users who do not have an account on the site. You can achieve the same functionality using the hook mentioned above. Implement the hook in any custom module and write the code to create the user account.

vishwac09/authzero 适用场景与选型建议

vishwac09/authzero 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 30.84k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2022 年 01 月 22 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 vishwac09/authzero 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 30.84k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 25
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-22