承接 impressolabs/laravel-sign-in-with-huawei 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

impressolabs/laravel-sign-in-with-huawei

最新稳定版本:0.3.0

Composer 安装命令:

composer require impressolabs/laravel-sign-in-with-huawei

包简介

Add Huawei's new single-signon feature to your site with ease.

README 文档

README

Supporting This Package

Code base fork from https://github.com/GeneaLabs/laravel-sign-in-with-apple

This is an MIT-licensed open source project with its ongoing development made possible by the support of the community. If you'd like to support this, and our other packages, please consider sponsoring us via the button above.

https://medium.com/@starkliew/how-to-sign-in-using-huawei-id-with-laravel-336a2397b930

Table of Contents

Requirements

  • PHP 7.2+
  • Laravel 7+
  • Socialite 4.2+
  • Huawei Developer Account

Installation

  1. Install the composer package:
    composer require impressolabs/laravel-sign-in-with-huawei

Configuration

Implementation

<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Laravel\Socialite\Facades\Socialite;

class HuaweiSigninController extends Controller
{
    public function __construct()
    {
        $this->middleware('guest')->except('logout');
    }

    public function login()
    {
        return Socialite::driver("huawei")
            ->redirect();
    }

    public function callback(Request $request)
    {
        // get abstract user object, not persisted
        $user = Socialite::driver("huawei")
            ->user();
        
    }
}

Credits

  1. https://github.com/GeneaLabs/laravel-sign-in-with-apple
  2. https://developer.huawei.com/consumer/en/doc/development/HMS-References/account-obtain-token
  3. https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0201272938220820099&fid=0101187876626530001
  4. https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-References-V1/scope-0000001050728398-V1

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固