seoda/socialite-apple

Apple OAuth2 Provider for Laravel Socialite
28,954 10
Install
composer require seoda/socialite-apple
Latest Version:v0.1.1
PHP:^7.1
License:MIT
Last Updated:May 8, 2020
Links: GitHub  ·  Packagist
Maintainer: yujiod

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 name and email fields.
    • We wait more information from Apple..

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
openid/oid-connect

OpenID-Connect/OAuth2 Social Login with LOA & Federation builtin

178 28
socialiteproviders/etsy

Etsy OAuth1 Provider for Laravel Socialite

89,194 2
laravel-uis/socialite-ui

A Laravel Socialite UI for the new Laravel Starter Kits

11,938 11

Version History

Version Released PHP License
v0.1.1 ^7.1 MIT
v0.1.0 ^7.1 MIT