定制 nerdzlab/socialite-apple-sign-in 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nerdzlab/socialite-apple-sign-in

最新稳定版本:2.2.2

Composer 安装命令:

composer require nerdzlab/socialite-apple-sign-in

包简介

Extension of laravel/socialite package. Adds apple provider to sign in.

README 文档

README

Good solution for implementation auth with apple for REST API. This package is extension of laravel/socialite package, it adds custom apple provider to socialite. It allows you to to create auth with apple flow using only apple's access_token. Package will check if token was not modified by validating token signature.

Installation

You can install the package via composer:

composer require nerdzlab/socialite-apple-sign-in

You may publish config if needed:

 php artisan vendor:publish --provider="Nerdzlab\SocialiteAppleSignIn\SocialiteAppleSignInServiceProvider" --tag="config"

Usage

To get started you need to add credentials for the apple service in your config/services.php file.

'apple' => [
    'client_id' => 'YOUR_BUNDLE_ID'
],

In case you have several apps, you may add several bundle ids as array.

'apple' => [
    'client_id' => [
        'FIRST_BUNDLE_ID',
        'SECOND_BUNDLE_ID',
    ]
],

Package automatically adds 'apple' driver to Socialite. After that you can obtain user data from access_token received from apple.

use Laravel\Socialite\Facades\Socialite;

$user = Socialite::driver('apple')->userFromToken($accessToken);

Package will cache public keys retrieved from apple during auth flow. You may automatically cache public keys by calling command:

php artisan apple-sign-in:update-keys

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 18
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固