All Projects → HMS-Core → huawei-account-demo

HMS-Core / huawei-account-demo

Licence: other
Sample code for quickly integrate Huawei ID. HUAWEI Account Kit provides developers with simple, secure, and quick sign-in and authorization functions.

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects

Projects that are alternatives of or similar to huawei-account-demo

hms-health-demo-java
HMS Health demo code provides demo programs for your reference or usage. Developers can access the Huawei Health Platform and obtain sports & health data by integrating HUAWEI Health.
Stars: ✭ 37 (-5.13%)
Mutual labels:  huawei, hms
hms-av-pipeline-demo
HUAWEI AV Pipeline Kit sample code project, which contains the Java sample code to implement functions like video playback, video super-resolution and media asset management. C++ sample code is contained for calling MediaFilter to use the sound event detection plugin.
Stars: ✭ 14 (-64.1%)
Mutual labels:  huawei, hms
hms-ecommerce-demo
Build a shopping app by HMS Core kits which shows how to use the HMS Core solution in E-Commerce industry.
Stars: ✭ 70 (+79.49%)
Mutual labels:  huawei, hms
hms-health-demo-kotlin
HMS Health demo code provides demo programs for your reference or usage. Developers can access the Huawei Health Platform and obtain sports & health data by integrating HUAWEI Health.
Stars: ✭ 21 (-46.15%)
Mutual labels:  huawei, hms
hms-push-serverdemo-php
PHP sample code encapsulates APIs of the HUAWEI Push Kit server.It provides many sample PHP programs about quick access to HUAWEI Push Kit for your reference or usage.
Stars: ✭ 21 (-46.15%)
Mutual labels:  huawei, hms
hms-scene-RTcore-demo
This demo provides examples of how to use RTCore APIs, including using them to create reflection effects and draw triangles.
Stars: ✭ 13 (-66.67%)
Mutual labels:  huawei, hms
hms-image-vision-java
This sample code is to guide the developer how to integrate the Image Vision Sub-service of the Image Kit, calling the image filter function. This sub-service provides 24 unique filter effects to enhance the artistic conception and artistic sense of the images.
Stars: ✭ 22 (-43.59%)
Mutual labels:  huawei, hms
hms-3d-modeling-demo
HUAWEI 3D Modeling Kit project contains a sample app. Guided by this demo, you will be able to implement full 3D Modeling Kit capabilities, including 3D object reconstruction and material generation.
Stars: ✭ 45 (+15.38%)
Mutual labels:  huawei, hms
hms-audio-editor-demo
HUAWEI Audio Kit provides a wide range of audio editing capabilities, including auido import/export/editing/extracting and format conversion. This sample code describes how to integrate the Audio Editor Kit SDK.
Stars: ✭ 24 (-38.46%)
Mutual labels:  huawei, hms
hms-push-serverdemo-java
Java sample code encapsulates APIs of the HUAWEI Push Kit server. It provides many sample programs for your reference or usage.
Stars: ✭ 39 (+0%)
Mutual labels:  huawei, hms
hms-scene-demo
HMS Scene kit demo provides an example of integrating HUAWEI Scene Kit with an app. A 3D graphics rendering engine performs more with less. User-friendly rendering APIs for games, AR & VR apps, and other apps bring your users a stunning visual experience.
Stars: ✭ 18 (-53.85%)
Mutual labels:  huawei, hms
hms-ads-demo-kotlin
HUAWEI Ads Kit Sample code in kotlin version, which provides the banner, native, rewarded, roll, interstitial and splash ad formats for integration
Stars: ✭ 16 (-58.97%)
Mutual labels:  huawei, hms
hms-computer-graphics-demo
This is the demo project of CGKit(Short for computer graphics kit). CGKit is a vulkan-based rendering framework, which is designed to improve performance of vulkan devices, especially for Android platform. This project will show you how to load textures, models, add pbr effects and render with vulkan.
Stars: ✭ 19 (-51.28%)
Mutual labels:  huawei, hms
hms-toolkit-convertor
Convertor is a code conversion tool supporting Java and Kotlin projects. It helps developers to automatically convert GMS APIs called by apps into corresponding HMS APIs, implementing quick conversion and HMS integration.
Stars: ✭ 29 (-25.64%)
Mutual labels:  huawei, hms
hms-analytics-demo-android
HmsAnalyticsKitDemo is a app that applying HUAWEI Hianalytics SDK used for showing how to collect user engagement and user preference.
Stars: ✭ 19 (-51.28%)
Mutual labels:  huawei, hms
from-gms-to-hms
Complete guide to adding support for Huawei's mobile services and distribution platform into your apps that are already published on Google Play.
Stars: ✭ 30 (-23.08%)
Mutual labels:  huawei, hms
hms-react-native-plugin
This repo contains all of React-Native HMS plugins.
Stars: ✭ 167 (+328.21%)
Mutual labels:  huawei, hms
hms-safetydetect-demo-android
SafetyDetect Sample provides many sample programs for your reference or usage.This example demonstrates how to integrate services provided by Safetydetect Kit, such as APPchecks, URLcheck, Userdetect, Wifidetect.
Stars: ✭ 16 (-58.97%)
Mutual labels:  huawei, hms
hms-audio-demo
HMS audio android sample code encapsulates APIs of the HUAWEI Audio Kit, which focuses on audio playback, audio effects and audio data.
Stars: ✭ 20 (-48.72%)
Mutual labels:  huawei, hms
hms-FIDO-demo-java
HMS FIDO demo, including fido2 demo, bioauthn demo and bioauthn-androidx demo.
Stars: ✭ 17 (-56.41%)
Mutual labels:  huawei, hms

HMS Core Account Kit Sample Code

English | 中文

Contents

Introduction

The sample code for Android encapsulates the server-side APIs of Account Kit, containing multiple demo apps for your reference or direct use. The sample code offers: hmssample: sample code package, which implements the following functions: sign-in, authorized sign-in, and sign-out logger: records logs.

Installation

To use capabilities offered in the sample code, make sure that HMS Core (APK) 4.0 has been installed on your device.

Environment Requirements

Android SDK version: 23 or later

JDK version: 1.8 or later

Configuration

Parameters in Contant.java include: CLIENT_ID: app ID, which can be obtained from AppGallery Connect CERT_URL: public key. To get it, obtain the public key URI from jwks_uri and then access this URI. ID_TOKEN_ISSUE: same as the value of iss in the ID token

Sample Code

The Java sample code for the server-side shows how to implement the following functions:

  1. Use the authorization code to obtain the access token in TokenAPIDemo.java.
  2. Use the public key to verify the ID token in IDTokenAPIDemo.java.
  3. Parse the access token in GetTokenInfoAPIDemo.java.

The Java sample code for the client-side shows how to implement the following functions:

  1. Sign-in in ID token mode.
  2. Sign-in in authorization code mode.
  3. Silent sign-in.
  4. Sign-out from an ID.
  5. Authorization revocation.

Service logic: Implement sign-in in ID token mode and authorization code mode in AccountActivity.java.

Result

The server-side Java sample code prints the access token and JSON Web Token.

Technical Support

You can visit the Reddit community to obtain the latest information about HMS Core and communicate with other developers. If you have any questions about the sample code, try the following:

  • Visit Stack Overflow, submit your questions, and tag them with huawei-mobile-services. Huawei experts will answer your questions.

  • Visit the HMS Core section in the HUAWEI Developer Forum and communicate with other developers.

    If you encounter any issues when using the sample code, submit your issues or submit a pull request.

License

The sample code is licensed under Apache License 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].