seoda/socialite-apple
Apple OAuth2 Provider for Laravel Socialite
** 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.
Related Packages
n30/socialite-amazon
Laravel Socialite for Login with Amazon/AWS Accounts. Social Providers Extention...
3,308
1
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v0.1.1 | ^7.1 | MIT | |
| v0.1.0 | ^7.1 | MIT |