| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
update iam unittest Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: I34fad9fc2e67f17bf27702ec4fa6453a27d9fc9c | 3 年前 | |
feat: add user auth engine abstraction layer Introduce an IUserAuthEngine interface between the userauth service and the auth execution backend so core/context/ipc/load_mode no longer depend on HDI types. Service layers use Eng* DTO types and ResultCode; all HDI/HDF dependencies consolidate into the engine source_set, and HDF codes convert to ResultCode at the engine boundary. The default HdiEngineImpl forwards to the user_auth HDI driver; a TEE Trust Application backend can be linked in instead. Backend status subscription and dynamic load/unload move into the engine. Rename INVALID_HDI_INTERFACE (1006) to ENGINE_UNAVAILABLE to distinguish a down backend from a generic error while keeping the numeric IPC code unchanged. Keep the engine DTO header free of engine internals by dropping the unused accesstoken_kit.h include. The client impl headers drop the legacy user_auth_types.h HDI include; user_auth_napi_client_impl.h keeps a reference to the engine DTO header where its types are referenced. Move the HDI external_deps (libuser_auth_proxy, hdf_core) and hdi_wrapper into the engine source_set so it is link-self-contained; the engine target reaches services/base headers via include_dirs. Move EnrolledInfo to iam_common_defines.h to drop the engine DTO's reverse dependency on the client defines header. Address review findings on the abstraction: - Propagate the engine return code on the credential/user-management database paths (GetCredentialInfo, DeleteUser, DeleteUserEnforce, GetAllExtUserInfo, GetCredentialInfoById, ClearUnavailableCredential). The first four preserve the pre-abstraction IPC code 1006 (formerly returned as INVALID_HDI_INTERFACE); GetCredentialInfoById and ClearUnavailableCredential now return ENGINE_UNAVAILABLE (1006) instead of GENERAL_ERROR (2) when the backend is down -- callers branch only on ret != SUCCESS, so behavior is unchanged. - Fix an uninitialized-read UB in AuthenticationImpl::Update by returning early when the engine call fails, instead of reading the unfilled result struct. - Copy the GlobalConfigValue union by its active member (enableStatus / pinExpiredPeriod) instead of always copying the inactive pinExpiredPeriod. - Restore an explicit ATokenType->EngCallerType mapping (new EngCallerType enum) so the callerType value no longer relies on ATokenType numerics coinciding with the driver contract. - Document the low bug-finding ROI of hdiwrapper_fuzzer. Add engine fuzz harnesses and align unit tests with the new types and ResultCode expectations. Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> 🤖 AI[0%] 🔧 Human Fixed[0%] 🧑 Human[100%] 👌 AI Adopted[0%] Change-Id: Ida34723771373f77d8b70febc5e26f408ca6582c Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> | 5 天前 | |
update iam unittest Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: I34fad9fc2e67f17bf27702ec4fa6453a27d9fc9c | 3 年前 | |
!2002 merge master into master fix fuzz crash Created-by: chenweijian16 Commit-by: chenweijian Merged-by: openharmony_ci Description: ### 一、内容说明(相关的Issue) [#1317](https://gitcode.com/openharmony/useriam_user_auth_framework/issues/1317) ### 二、建议测试周期和提测地址 建议测试完成时间:xxxx.xx.xx 投产上线时间:xxxx.xx.xx 提测地址:CI环境/压测环境 测试账号: ### 三、变更内容 * 3.1 关联PR列表 * 3.2 数据库和部署说明 1. 常规更新 2. 重启unicorn 3. 重启sidekiq 4. 迁移任务:是否有迁移任务,没有写 "无" 5. rake脚本: bundle exec xxx RAILS_ENV = production;没有写 "无" * 3.4 其他技术优化内容(做了什么,变更了什么) - 重构了 xxxx 代码 - xxxx 算法优化 * 3.5 废弃通知(什么字段、方法弃用?) * 3.6 后向不兼容变更(是否有无法向后兼容的变更?) ### 四、研发自测点(自测哪些?冒烟用例全部自测?) 自测测试结论: ### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方) 检查点: | 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 | |------|------------|----------|---------------| | xxx | 否 | 需要 | 不需要 | | | | | | 接口测试: 性能测试: 并发测试: 其他: See merge request: openharmony/useriam_user_auth_framework!2002 | 5 天前 | |
update iam unittest Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: I34fad9fc2e67f17bf27702ec4fa6453a27d9fc9c | 3 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 年前 | ||
| 5 天前 | ||
| 3 年前 | ||
| 5 天前 | ||
| 3 年前 |