用户可借助该项目实现跨设备的身份认证,支持无感解锁、双因子融合认证等场景。项目作为OpenHarmony用户认证执行器,提供设备管理、跨设备通信及安全代理等核心功能,支持多语言接口与安全凭据管理。【此简介由AI生成】
| Files | Last commit | Last update |
|---|---|---|
feat: add passcode prompt callback for companion device authentication Add end-to-end passcode prompt callback support spanning IPC interface, service logic, client implementation, NAPI/ANI framework bindings, and RSA-OAEP encryption for secure passcode transmission. Also extract FFI array utility templates into a dedicated header and parameterize permission checking across all framework and service entry points. Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: Id0989d3d30da14890bbe8e55026757c9697450ca | 5 months ago | |
refactor: extract service initialization and core logic into separate classes This commit refactors the service layer by extracting initialization and core logic from CompanionDeviceAuthService into two new classes: - BaseServiceInitializer: Table-driven initialization with dependency injection support - BaseServiceCore: Core service functionality including subscription and device management Key improvements: - Enhanced testability through dependency injection - Improved lambda capture safety using weak_from_this for async callbacks - Better separation of concerns and maintainability - Cleaned up low-value comments and unused dependencies Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: If7ea0dd5b34e4d2e1a283eeb7efcbe8d6edb5c3f | 9 months ago | |
feat: add passcode prompt callback for companion device authentication Add end-to-end passcode prompt callback support spanning IPC interface, service logic, client implementation, NAPI/ANI framework bindings, and RSA-OAEP encryption for secure passcode transmission. Also extract FFI array utility templates into a dedicated header and parameterize permission checking across all framework and service entry points. Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: Id0989d3d30da14890bbe8e55026757c9697450ca | 5 months ago | |
feat: add passcode prompt callback for companion device authentication Add end-to-end passcode prompt callback support spanning IPC interface, service logic, client implementation, NAPI/ANI framework bindings, and RSA-OAEP encryption for secure passcode transmission. Also extract FFI array utility templates into a dedicated header and parameterize permission checking across all framework and service entry points. Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: Id0989d3d30da14890bbe8e55026757c9697450ca | 5 months ago | |
feat: add dynamic loading support and enhance capability verification Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: Ie7e59d859bb43c39ec2b75dd04db3f79e681d302 | 9 months ago | |
refactor: simplify service architecture and enhance protocol validation - Remove dynamic load feature flag and related conditional code - Remove unused MCU/MCU_AP secure protocol IDs - Add safe arithmetic operations to prevent integer underflow - Enhance protocol and capability validation in companion device interactions - Improve API return types with std::optional for better error handling - Fix naming convention issues and clean up service entry code Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: I1ae540ffe6b143eadae171b9326e917a68d7fd2a | 8 months ago | |
fix : companion auth Signed-off-by: hejiaogirl <hejiao@huawei.com> Change-Id: Ic330987e5ac6fd686e20a3756cb954388487b663 | 5 months ago | |
fix : companion auth Signed-off-by: hejiaogirl <hejiao@huawei.com> Change-Id: Ic330987e5ac6fd686e20a3756cb954388487b663 | 5 months ago | |
all code Signed-off-by: HelloMiracle123 <3299615082@qq.com> | 10 months ago | |
feat: add E2E module test infrastructure and 47 test cases Add comprehensive E2E module test framework with 47 test cases covering service init, device sync, add companion, token auth, delegate auth, connection management, and timeout scenarios. Refactor fuzzer to use BaseServiceCore. Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: I133ad48f0e73b40f9548987fef176a680d4ce08e | 7 months ago | |
feat: scope request mutual exclusion to per-device and trigger status refresh on subscribe - Change HostIssueTokenRequest/HostTokenAuthRequest mutual exclusion from global to per-device, allowing concurrent operations on different devices - Extract RefreshDeviceStatus/RefreshPhysicalDeviceStatus methods and trigger device status refresh after subscription operations - Remove HOST_MIX_AUTH_REQUEST preemption of HostSingleMixAuthRequest - Continue processing on CompanionProcessCheck failure instead of returning early - Remove unnecessary cross_device_comm_manager_impl.h includes from request files Change-Id: I605d8b648f2ba31d3ef7bbb17489fb3ffc648081 Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> | 6 months ago | |
test: improve test infrastructure and code style - Improve test configuration in test_config.gni: - Separate coverage flags for unit tests and fuzz tests - Add explicit -O0 optimization flag for test builds - Use --coverage for fuzz test coverage (GCC-style) - Add namespace closing comments to fuzz test files for code clarity - Improve test teardown in request unit tests Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: Iaa15bef7bd1c04a0d02c4b1df0410ffdd824a0d9 | 9 months ago | |
all code Signed-off-by: HelloMiracle123 <lihuayue1@huawei.com> | 10 months ago | |
all code Signed-off-by: HelloMiracle123 <lihuayue1@huawei.com> | 10 months ago | |
refactor: extract service initialization and core logic into separate classes This commit refactors the service layer by extracting initialization and core logic from CompanionDeviceAuthService into two new classes: - BaseServiceInitializer: Table-driven initialization with dependency injection support - BaseServiceCore: Core service functionality including subscription and device management Key improvements: - Enhanced testability through dependency injection - Improved lambda capture safety using weak_from_this for async callbacks - Better separation of concerns and maintainability - Cleaned up low-value comments and unused dependencies Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: If7ea0dd5b34e4d2e1a283eeb7efcbe8d6edb5c3f | 9 months ago | |
add header static Signed-off-by: wangxu43 <wangxu43@huawei.com> 🤖 AI[0%] 👌 AI Adopted[0%] 🧑 Human[100%] Change-Id: Ie198297aa00a530aa80da8a098b462588c5b24bd | 5 months ago | |
all code Signed-off-by: HelloMiracle123 <3299615082@qq.com> | 10 months ago | |
refactor: improve subscription structure and add business id filtering - Restructure subscription directory layout for better organization - Add business id filtering in host mix auth request for template validation - Apply GET_MASKED_STR_CSTR for sensitive device info in logs - Simplify SystemParamManager subscription storage with unified struct - Fix userId type from uint32_t to int32_t in BeginDelegateAuth Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: Id2f6b3a1001a60916ed3260d518ce5105cc66e9f | 8 months ago | |
hisysevent Signed-off-by: wwf_817 <wangwenfei16@huawei.com> Change-Id: I4cfa9a88f6ba6f04f76f1869ccae055654d083fc | 8 months ago |
Project README is empty
Introduction
用户可借助该项目实现跨设备的身份认证,支持无感解锁、双因子融合认证等场景。项目作为OpenHarmony用户认证执行器,提供设备管理、跨设备通信及安全代理等核心功能,支持多语言接口与安全凭据管理。【此简介由AI生成】
Customize your domain