happytodev/authentik
Composer 安装命令:
composer require happytodev/authentik
包简介
A package for TempestPHP to handle OAuth authentication with providers like GitHub, Amazon and others to come.
README 文档
README
A package for TempestPHP to handle OAuth authentication with providers like
- GitHub
- X
- Amazon
Prerequisites
- TempestPHP installed
- TempestPHP Auth package installed
- Database setup
- OAuth provider credentials (Client ID, Client Secret, Redirect URI)
Installation
You can install the package via composer:
composer require happytodev/authentik
As Tempest Auth User's model is final, you need to extend it and add the OauthFieldsTrait to your User model.
Just add the following use OauthFieldsTrait; to your User model:
final class User implements CanAuthenticate, CanAuthorize { use IsDatabaseModel; use OauthFieldsTrait; // Add the trait here ...
Migration
Run the following command to add the necessary database fields:
php tempest migrate:up
.env settings
Configure your .env file with the necessary settings:
# Possible values: local, staging, production, ci, testing, other ENVIRONMENT=local # The base URI that's used for all generated URIs BASE_URI=https://mytempestsite.test GITHUB_CLIENT_ID=Ov23liz............. GITHUB_CLIENT_SECRET=14a................................... GITHUB_REDIRECT_URI=${BASE_URI}/auth/github/callback AMAZON_CLIENT_ID='amzn1.application-oa2-client.ca50............................' AMAZON_CLIENT_SECRET='amzn1.oa2-cs.v1.ed9a............................................................' AMAZON_REDIRECT_URI=${BASE_URI}/auth/amazon/callback # After success oauth authentication, route to redirect to AUTHENTIK_REDIRECT_URI=${BASE_URI}/admin
Usage
Create link to the login page in your view by calling the following address :
License
The MIT License (MIT). Please see License File for more information.
Credits
happytodev/authentik 适用场景与选型建议
happytodev/authentik 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 26 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 07 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 happytodev/authentik 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 happytodev/authentik 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 27
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-06