con4gis/oauth
Composer 安装命令:
composer require con4gis/oauth
包简介
Authentication bundle with functionality needed for authenticating with OpenID Connect
关键字:
README 文档
README
Important
We are not actively developing this con4gis module. Further development orders are possible.
This bundle adds OAuth Authentication functionality for Contao frontend users. In addition, you can also make the entire frontend accessible exclusively via an upstream login.
Currently this bundle only supports OpenID Connect Servers.
Installation
Step 1: Install the bundle
You can install the bundle using composer or the contao manager. For composer use the following command:
$ composer require con4gis/oauth
In the contao manager, you can find the bundle under "con4gis/oauth".
Step 2: Configure the bundle
After the installation you need to configure the app under config/config.yml.
OpenID-Connect:
parameters: con4gis.oauth.oidc.client_id: "### The client id for the openid connect server ###" con4gis.oauth.oidc.client_secret: "### The client secret for the openid connect server ###" con4gis.oauth.oidc.auth_server_url: "### The authentication url for the openid connect server ###" con4gis.oauth.oidc.realm: "### The realm for the openid connect server ####" # Uncomment the following option if you want to access the entire frontend via an upstream login #con4gis.oauth.oidc.secured: "true"
Step 3: Clear the cache
You can now clear the cache via the contao manager or the contao console:
$ php vendor/bin/contao-console cache:clear -e prod
Step 4: Configure the login module
This step is only necessary if you don't make the entire frontend accessible via an upstream login.
In the contao backend you can create the new OAuth login module. There you can set up, which groups will be assigned to new logins and which user data will be stored in the contao database. The username is saved by default.
The module creates a new login button, that you can place anywhere on your site.
Callback URLs
To be able to login successfully you need to allow the following callback urls in your OAuth Application:
| OAuth Provider | Callback URL |
|---|---|
| OpenID Connect | http://your-domain/oidc/callback |
con4gis/oauth 适用场景与选型建议
con4gis/oauth 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 101 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 01 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「OpenId」 「Authentication」 「oauth」 「contao」 「OpenID Connect」 「oidc」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 con4gis/oauth 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 con4gis/oauth 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 con4gis/oauth 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
WeChat OAuth SDK
Automatically logs-in users if they are already authenticated by a remote source. (e.g. environment variable REMOTE_USER)
GraphQL authentication for your headless Craft CMS applications.
Ory-Hydra OAuth 2.0 Client Provider for The PHP League OAuth2-Client
Library for ORCID web services
Bare-bones OpenID Connect client
统计信息
- 总下载量: 101
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2022-01-17