How to Sign In using Huawei ID with Laravel

Stark Liew
2 min readSep 15, 2020

--

A clear road map by Huawei indicate they are going to debut HarmonyOS on next smartphone in 2021. Given the name started with harmony, mean a unified operating system that are going to run on everything. Sound great isn’t it?

Huawei devices has been a while in the global market. Hence, try to figure out the numbers of existing consumer registered with Huawei ID?

How to get started?

Register a Huawei Developer account. After submit, it will take one to two working days to get your account verified.

Since we are not publish any app to their store, we can begin without waiting for account approval.

We can just dive right in to create an app.

Getting the API Key

Goto credentials and Create a OAuth 2.0 Client ID

Fill up and form and create. (Copy example fingerprint to certificate fingerprint 1, if you don’t have one)

Take note of the created client id and client secret.

Laravel OAuth2.0 Implementation

We are use Laravel Socialite to implement our social login strategy. If you haven’t implement Socialite, you need to do so. Follow Laravel Socialite documentation or other Laravel Socialite tutorial for implementation.

https://github.com/IMPRESSOLABS/sign-in-with-huawei/blob/master/README.md

--

--