ahilmurugesan/socialite-apple-helper
Composer 安装命令:
composer require ahilmurugesan/socialite-apple-helper
包简介
Laravel Socialite Apple Login Helper to generate and manage Client Secret
关键字:
README 文档
README
1. Installation
// This assumes that you have composer installed globally composer require ahilmurugesan/socialite-apple-helper
2. Configuration Setup
You will need to add an entry to the services configuration file so that after config files are cached for usage in production environment (Laravel command artisan config:cache) all config is still available.
To set up the required environment variables you can use the following artisan command which comes with this package.
php artisan socialite:apple
The command will prompt you the required values.You need to provide the following keys.
- Team ID
- Key ID
- Client ID
- Auth Key ( file name of p8 auth file, located inside storage/app/ ) Example: AuthKey_SAMPKEY.p8
- Redirect URI ( fully qualified secure callback url ) Example: https://website.com/socialite/apple/callback
- Token Refresh Interval ( in days )
Client Secret will be automatically generated and added to the .env file by using the above command.
The expiration time registered claim key, the value of which must not be greater than 15777000 (6 months in seconds) from the Current Unix Time on the server.
Sign in with Apple Client Secret expiration time cannot be greater than six months. Hence it is advisible to refresh the Client Secret atleast once in six months after creation. You can adjust the Token Refresh Interval. There is a scheduled task which comes along with this package which will ensure that the Client Token is refreshed automatically. Please do ensure that you have enabled Task Scheduling
To manually refresh the Client Secret, please run the following command
php artisan socialite:apple --refresh
3. Demo Repo
ahilmurugesan/socialite-apple-helper 适用场景与选型建议
ahilmurugesan/socialite-apple-helper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 122.3k 次下载、GitHub Stars 达 13, 最近一次更新时间为 2020 年 04 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「apple」 「laravel」 「socialite」 「laravel socialite」 「sign in with apple」 「socialite apple」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ahilmurugesan/socialite-apple-helper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ahilmurugesan/socialite-apple-helper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ahilmurugesan/socialite-apple-helper 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel Authentication package with built-in two-factor (Authy) and social authentication (Socialite).
Socialite authentication and persistence layer implementation.
A simple library to decode and parse Apple Sign In client tokens.
Apple Push Notification & Feedback Provider
TikTok Shop OAuth2 Provider for Laravel Socialite
Planning Center OAuth2 Provider for Laravel Socialite
统计信息
- 总下载量: 122.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 36
- 依赖项目数: 0
- 推荐数: 4
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-28