seoda / socialite-apple
Apple OAuth2 Provider for Laravel Socialite
Installs: 26 428
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 2
Forks: 5
Open Issues: 4
Requires
- php: ^7.1
- laravel/socialite: ~4.0
This package is auto-updated.
Last update: 2025-04-26 15:23:00 UTC
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
name
andemail
fields. - We wait more information from Apple..
- This means that you cannot get
License
socialite-apple is open-sourced software licensed under the MIT license.