New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

seoda/socialite-apple

Apple OAuth2 Provider for Laravel Socialite
29,092 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

socialiteproviders/etsy

EtsyV3 OAuth2 Provider for Laravel Socialite

90,175 2
laravel-uis/socialite-ui

A Laravel Socialite UI for the new Laravel Starter Kits

14,117 11
openid/oid-connect

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

178 28
audunru/social-accounts

Add social login to your Laravel app

4,853 2
martinbean/socialite-discord-provider

A Discord provider for Laravel Socialite.

49,215 30

Version History

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