bitmotion / mautic-auth0-bundle
此包已被废弃,不再维护。作者建议使用leuchtfeuer/mautic-auth0-bundle包。
Auth0 是您需要的用于网页、移动、物联网和内部应用的解决方案。受到开发者的喜爱,并得到企业的信任。
v2.0.0
2024-02-07 09:21 UTC
Requires
- php: ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.2
- mautic/core-lib: ^5.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.4
- phpstan/phpstan: ^1.0
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpstan/phpstan-strict-rules: ^1.0
- phpunit/phpunit: ^9.5
Replaces
- bitmotion/mautic-auth0-bundle: v2.0.0
This package is auto-updated.
Last update: 2024-09-19 11:15:05 UTC
README
此 Mautic 插件允许通过 Auth0 进行登录和注册。
安装
- 打开终端/控制台窗口
- 更改目录到 mautic 根目录(例如
cd /var/www/mautic
) - 将此存储库克隆到 plugins/MauticAuth0Bundle(
git clone https://github.com/Leuchtfeuer/auth0-for-mautic.git plugins/MauticAuth0Bundle
) - 清除缓存(
php app/console cache:clear
) - 转到设置 -> 插件,并单击“安装/升级插件”
- 选择 Auth0 插件,调整配置并发布
您还可以通过执行以下命令直接将此包添加到您的项目 composer.json 文件中:composer require leuchtfeuer/mautic-auth0-bundle
。
我们目前支持以下 Mautic 版本
插件配置
配置
您可以在配置模块中配置映射(Auth0 数据 -> Mautic 用户数据)。有几种选项
使用点符号访问数组(例如 user_metadata.login_name
)。
角色
如果您想将 Auth0 中的角色映射到您的 Mautic 用户,您必须修改 Auth0 用户中的 app_metadata(其中 <ROLE_ID>
是您的 Mautic 角色的 ID)
{
...
"mautic": {
"role": <ROLE_ID>
}
}
从 Mautic 2.x.x 升级到 Mautic 3.x.x
在更新插件时,请确保将您的 Auth0 应用程序设置中的回调 URL 从 ../s/sso_login/Auth0Auth
更改为 ../s/sso_login/Auth0
。
从 Mautic 4.x.x 升级到 Mautic 5.x.x
在更新插件时,请确保将您的 Auth0 应用程序设置中的回调 URL 从 ../s/sso_login/Auth0 to
更改为 ../s/sso_login/LeuchtfeuerAuth0
。
作者
Leuchtfeuer Digital Marketing GmbH