Go to file
openharmony_ci 5e444e0f66
!719 解决ContextPool中cancelAll调用Delete导致死锁的问题
Merge pull request !719 from liuziwei/master
2024-01-10 09:39:12 +00:00
common 展开IAM_TRY宏 2024-01-03 10:18:01 +08:00
figures update readme 2022-07-08 10:36:37 +08:00
frameworks !718 仅pin录入时发送广播 2024-01-05 10:33:00 +00:00
interfaces/inner_api fix code 2023-11-07 03:50:19 +00:00
param fingerprint disable support 2023-12-07 09:18:12 +00:00
sa_profile add : add ohos.permission.START_SYSTEM_DIALOG 2023-12-21 11:11:33 +08:00
services fix code 2024-01-10 12:02:43 +08:00
test fix code 2024-01-05 11:31:39 +08:00
.gitignore add userauth executor 2022-05-08 22:46:36 +08:00
bundle.json 增加锁屏密码变更公共事件 2023-12-11 11:22:38 +08:00
cfi_blocklist.txt fix : Security and privacy compliance 2023-09-02 07:21:54 +00:00
CODEOWNERS move ipc code to single .h file and add CODEOWNERS file 2023-07-01 06:29:14 +00:00
hisysevent.yaml fix code 2023-11-07 03:50:19 +00:00
LICENSE fix UserAuth issue 2022-03-12 20:47:37 +08:00
OAT.xml fix issue 2022-03-24 19:04:27 +08:00
README_ZH.md update readme 2022-07-11 14:22:45 +08:00
README.md README.md README_ZH.md 更新仓名 2022-06-22 12:00:55 +08:00

Unified User Authentication (userauth)

Introduction

As a basic component of the User Identity & Access Management (IAM) subsystem, Unified User Authentication (userauth) implements unified user authentication and provides biometric feature authentication APIs to third-party applications.

Figure 1 userauth architecture

userauth_architecture

The userauth APIs support user authentication of the target Authentication Trust Level (ATL). The target ATL is specified by the service. The target user ID can be specified by the service (system service or basic system application) or obtained from the system context (third-party application).

Directory Structure

//base/useriam/user_auth_framework
├── frameworks			# Framework code
├── interfaces			# Directory for storing external interfaces
│   └── innerkits		# Header files exposed to the internal subsystems
├── sa_profile			# Profile of the Service ability
├── services			# Implementation of the Service ability
├── test				# Directory for storing test code
├── utils				# Directory for storing utility code
├── bundle.json			# Component description file
└── userauth.gni		# Build configuration

Usage

Available APIs

Table 1 APIs for unified user authentication

API Description
getAvailableStatus(authType : AuthType, authTrustLevel : AuthTrustLevel) : number; Obtains the available authentication status.
auth(challenge: BigInt, authType : AuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): BigInt; Performs user authentication.

Usage Guidelines

  • Vendors must implement the following in a Trusted Execution Environment (TEE):
  1. Authentication scheme: Determine the user authentication scheme based on the user credentials entered and the target ATL.
  2. Authentication result evaluation: Evaluate whether the authentication reaches the target ATL based on the authentication result returned by the executor.
  • The APIs defined in the header file user_auth/v1_0/IUserAuthInterface.idl in the drivers_interface repository must be implemented in a TEE, and the security of user authentication scheme and result evaluation must be ensured.

Repositories Involved

useriam_user_auth_framework

useriam_pin_auth

useriam_face_auth

drivers_peripheral

drivers_interface