seoda/socialite-apple
最新稳定版本:v0.1.1
Composer 安装命令:
composer require seoda/socialite-apple
包简介
Apple OAuth2 Provider for Laravel Socialite
README 文档
README
** This component is under development. **
Requirements
- PHP >= 7.1.3
- Laravel >= 5.7
Usage
Prepare in Apple Developer Portal
Create an App ID, Services ID and Private Key for Client Authentication in Apple Developer Portal.
see: Getting Started - Sign in with Apple - Apple Developer
Install
composer require seoda/socialite-apple
Configure
config/services.php
'apple' => [
'client_id' => env('APPLE_CLIENT_ID'),
'client_secret' => env('APPLE_CLIENT_SECRET'),
'redirect' => env('APPLE_REDIRECT'),
]
.env
APPLE_CLIENT_ID=
APPLE_CLIENT_SECRET=
APPLE_REDIRECT=
Implemenetation
// Redirect to Sign in with Apple in controller. return Socialite::driver('apple')->redirect(); // Handle callback, fetch user information from `code` in controller. $user = Socialite::driver('apple')->user();
Limitation
getUserByToken()is not implemeneted at this time.- This means that you cannot get
nameandemailfields. - We wait more information from Apple..
- This means that you cannot get
License
socialite-apple is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 27.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-25