Authing DocsDocuments
Concept
Guides
Development Integration
Application integration
Concept
Guides
Development Integration
Application integration
Old Version
Development Integration
  • Single Sign-On (SSO)
  • Login component

  • JavaScript/Node.js

  • Java / Kotlin

  • Python

  • C#

  • PHP

  • Go

  • Ruby
  • Android

    • Quick start
    • Hosting page
    • APIs

    • Third-party identity source

    • Scenario

    • On-premise
    • Android Guard Change log
    • Error code
  • iOS

  • Flutter

  • React Native
  • WeChat Mini Program
  • WeChat webpage authorization
  • Framework Integration
  • Error code
  1. Development Integration
  2. /
  3. Android
  4. /
  5. Quick start

¶ Quick start

Update Time: 2023-03-05 18:03:20
Edit

¶ Step 1: Create an Android project

drawing drawing

Note: Minimum OS version is Android 7.0

¶ Step 2: Add dependency for Guard

make sure mavenCentral is present in project-level build.gradle:

buildscript {
   repositories {
       mavenCentral()
       // other repositories
   }
}

Add dependencies to the build.gradle file of the main project:

implementation 'cn.authing:guard:+'

¶ Step 3: Add permission

In AndroidManifest.xml :

<uses-permission android:name="android.permission.INTERNET"/>

¶ Step 4: Initialization

at app startup, call:

// context is application or initial activity
// ”appId“ is obtained from the Authing console
Authing.init(context, "appId");
Authing.setAuthProtocol(Authing.AuthProtocol.EOIDC);

Note:AUTHING_APP_ID application ID,not the user pool ID,Please go to the console (opens new window) first to obtain.

Please select authing_token in Application Configuration-Authorization mode.

¶ Step 5: Common operations

¶ 1. Register/log in and get user information

  • Host pages using the SDK
  • Use the SDK API

¶ 2. Login from a third-party identity source

¶ 3. A typical scenario

¶ 4. Privatization deployment

Prev: Android Next: Hosting page
  • Step 1: Create an Android project
  • Step 2: Add dependency for Guard
  • Step 3: Add permission
  • Step 4: Initialization
  • Step 5: Common operations

User identity management

Integrated third-party login
Mobile phone number flash check (opens new window)
Universal login form component
Custom authentication process

Enterprise internal management

Single Sign On
Multi-factor Authentication
Authority Management

Developers

Development Document
Framework Integration
Blog (opens new window)
GitHub (opens new window)
Community User Center (opens new window)

Company

400 888 2106
sales@authing.cn
16 / F, Block B, NORTH STAR CENTURY CENTER, Beijing(Total)
room 406, 4th floor, zone B, building 1, No. 200, Tianfu Fifth Street, Chengdu(branch)

Beijing ICP No.19051205-1

© Beijing Steamory Technology Co.