定制 ahilmurugesan/socialite-apple-helper 二次开发

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

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

ahilmurugesan/socialite-apple-helper

最新稳定版本:0.7.5

Composer 安装命令:

composer require ahilmurugesan/socialite-apple-helper

包简介

Laravel Socialite Apple Login Helper to generate and manage Client Secret

README 文档

README

Total Downloads Latest Stable Version License

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.

  1. Team ID
  2. Key ID
  3. Client ID
  4. Auth Key ( file name of p8 auth file, located inside storage/app/ ) Example: AuthKey_SAMPKEY.p8
  5. Redirect URI ( fully qualified secure callback url ) Example: https://website.com/socialite/apple/callback
  6. 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

统计信息

  • 总下载量: 118.99k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 13
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 4

GitHub 信息

  • Stars: 13
  • Watchers: 2
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-28