seoda/socialite-apple 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

License

socialite-apple is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 27.69k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-25