# agc-authservice-codelab-java **Repository Path**: appgallery_connect/agc-authservice-codelab-java ## Basic Information - **Project Name**: agc-authservice-codelab-java - **Description**: Most apps need to identify and authenticate users to tailor the app experience for individual users. However, building such a system from scratch is a difficult process. Auth Service can quickly build a secure and reliable user authentication system for your app. You only need to access Auth Service capabilities in your app without caring about the facilities and implementation on the cloud. - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-27 - **Last Updated**: 2021-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## auth quickstart ## Introduction The AppGallery Connect auth service supports multiple authentication methods and is seamlessly integrated with other Serverless services to help you secure user data based on simple rules that you have defined. ## Preparing the Environment Before using the quickstart app, prepare your Android development environment. ## Environment Requirements Android Studio 3.0 or later. ## Configuration Before running the quickstart app, you need to: 1. If you do not have a HUAWEI Developer account, you need to register an account and pass identity verification. 2. Use your account to sign in to AppGallery Connect, create an app, and set Package type to APK (Android app). 3. Click the app you have just created, go to Develop > Build > Auth Service. 4. Download the agconnect-services.json file from AppGallery Connect and replace the JSON file of the quickstart app with it. ## Sample Code The Auth SDK supports multiple authentication mehtods and link function. Sample code: src/main/java/com/huawei/authcodelab/MainActivity.java ## License Auth quickstart is licensed under the [Apache License, version 2.0] (http://www.apache.org/licenses/LICENSE-2.0).