| Files | Last commit | Last update |
|---|---|---|
[refactor] Address the review comments for the UsbKeyAuth sample Add the missing copyright headers to both hvigorfile.ts files, rename mainPage.ets to MainPage.ets to follow the PascalCase convention and update the router config, EntryAbility and README references, annotate every const/let with an explicit type, and move all hardcoded UI strings into the string resources. The userAuth dialog titles are resolved through the UIContext resource manager because WidgetParam.title only accepts a plain string, and getStringSync is called with the numeric resource id to avoid the deprecated Resource overload. Add the English README and the ohosTest.md case archive, and align the project layout with the recently merged samples: add code-linter.json5, obfuscation-rules.txt, the local unit test scaffold, EntryBackupAbility with its backup_config metadata, float.json and the dark color resource, and drop the stale TestRunner and testability template together with the ohosTest resources that only served it. Declare both default and 2in1 in deviceTypes so the sample also installs on a development board, and map error code 801 to an explicit "not supported on this device" result because the ukey capability is limited to PC and 2in1. Failure results now carry the error message as well as the error code. Bump the product SDK versions to 26.1.0 to match the @since of the securityManager ukey interfaces, and extend .gitignore so build output and the generated lock file stay out of the tree. Also fix three defects found while building the sample: compare the authentication result against UserAuthResultCode.SUCCESS instead of the deprecated ResultCode.SUCCESS whose value never matches, await addUserExtendCredential so a rejection reaches the retry logic, and guard getUserExtendCredential in unbindUsbKey with a try/catch. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Signed-off-by: h30053807 <huangxiao41@huawei.com> | 1 month ago | |
[refactor] Address the review comments for the UsbKeyAuth sample Add the missing copyright headers to both hvigorfile.ts files, rename mainPage.ets to MainPage.ets to follow the PascalCase convention and update the router config, EntryAbility and README references, annotate every const/let with an explicit type, and move all hardcoded UI strings into the string resources. The userAuth dialog titles are resolved through the UIContext resource manager because WidgetParam.title only accepts a plain string, and getStringSync is called with the numeric resource id to avoid the deprecated Resource overload. Add the English README and the ohosTest.md case archive, and align the project layout with the recently merged samples: add code-linter.json5, obfuscation-rules.txt, the local unit test scaffold, EntryBackupAbility with its backup_config metadata, float.json and the dark color resource, and drop the stale TestRunner and testability template together with the ohosTest resources that only served it. Declare both default and 2in1 in deviceTypes so the sample also installs on a development board, and map error code 801 to an explicit "not supported on this device" result because the ukey capability is limited to PC and 2in1. Failure results now carry the error message as well as the error code. Bump the product SDK versions to 26.1.0 to match the @since of the securityManager ukey interfaces, and extend .gitignore so build output and the generated lock file stay out of the tree. Also fix three defects found while building the sample: compare the authentication result against UserAuthResultCode.SUCCESS instead of the deprecated ResultCode.SUCCESS whose value never matches, await addUserExtendCredential so a rejection reaches the retry logic, and guard getUserExtendCredential in unbindUsbKey with a try/catch. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Signed-off-by: h30053807 <huangxiao41@huawei.com> | 1 month ago | |
[refactor] Address the review comments for the UsbKeyAuth sample Add the missing copyright headers to both hvigorfile.ts files, rename mainPage.ets to MainPage.ets to follow the PascalCase convention and update the router config, EntryAbility and README references, annotate every const/let with an explicit type, and move all hardcoded UI strings into the string resources. The userAuth dialog titles are resolved through the UIContext resource manager because WidgetParam.title only accepts a plain string, and getStringSync is called with the numeric resource id to avoid the deprecated Resource overload. Add the English README and the ohosTest.md case archive, and align the project layout with the recently merged samples: add code-linter.json5, obfuscation-rules.txt, the local unit test scaffold, EntryBackupAbility with its backup_config metadata, float.json and the dark color resource, and drop the stale TestRunner and testability template together with the ohosTest resources that only served it. Declare both default and 2in1 in deviceTypes so the sample also installs on a development board, and map error code 801 to an explicit "not supported on this device" result because the ukey capability is limited to PC and 2in1. Failure results now carry the error message as well as the error code. Bump the product SDK versions to 26.1.0 to match the @since of the securityManager ukey interfaces, and extend .gitignore so build output and the generated lock file stay out of the tree. Also fix three defects found while building the sample: compare the authentication result against UserAuthResultCode.SUCCESS instead of the deprecated ResultCode.SUCCESS whose value never matches, await addUserExtendCredential so a rejection reaches the retry logic, and guard getUserExtendCredential in unbindUsbKey with a try/catch. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Signed-off-by: h30053807 <huangxiao41@huawei.com> | 1 month ago | |
[refactor] Address the review comments for the UsbKeyAuth sample Add the missing copyright headers to both hvigorfile.ts files, rename mainPage.ets to MainPage.ets to follow the PascalCase convention and update the router config, EntryAbility and README references, annotate every const/let with an explicit type, and move all hardcoded UI strings into the string resources. The userAuth dialog titles are resolved through the UIContext resource manager because WidgetParam.title only accepts a plain string, and getStringSync is called with the numeric resource id to avoid the deprecated Resource overload. Add the English README and the ohosTest.md case archive, and align the project layout with the recently merged samples: add code-linter.json5, obfuscation-rules.txt, the local unit test scaffold, EntryBackupAbility with its backup_config metadata, float.json and the dark color resource, and drop the stale TestRunner and testability template together with the ohosTest resources that only served it. Declare both default and 2in1 in deviceTypes so the sample also installs on a development board, and map error code 801 to an explicit "not supported on this device" result because the ukey capability is limited to PC and 2in1. Failure results now carry the error message as well as the error code. Bump the product SDK versions to 26.1.0 to match the @since of the securityManager ukey interfaces, and extend .gitignore so build output and the generated lock file stay out of the tree. Also fix three defects found while building the sample: compare the authentication result against UserAuthResultCode.SUCCESS instead of the deprecated ResultCode.SUCCESS whose value never matches, await addUserExtendCredential so a rejection reaches the retry logic, and guard getUserExtendCredential in unbindUsbKey with a try/catch. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Signed-off-by: h30053807 <huangxiao41@huawei.com> | 1 month ago | |
[refactor] Address the review comments for the UsbKeyAuth sample Add the missing copyright headers to both hvigorfile.ts files, rename mainPage.ets to MainPage.ets to follow the PascalCase convention and update the router config, EntryAbility and README references, annotate every const/let with an explicit type, and move all hardcoded UI strings into the string resources. The userAuth dialog titles are resolved through the UIContext resource manager because WidgetParam.title only accepts a plain string, and getStringSync is called with the numeric resource id to avoid the deprecated Resource overload. Add the English README and the ohosTest.md case archive, and align the project layout with the recently merged samples: add code-linter.json5, obfuscation-rules.txt, the local unit test scaffold, EntryBackupAbility with its backup_config metadata, float.json and the dark color resource, and drop the stale TestRunner and testability template together with the ohosTest resources that only served it. Declare both default and 2in1 in deviceTypes so the sample also installs on a development board, and map error code 801 to an explicit "not supported on this device" result because the ukey capability is limited to PC and 2in1. Failure results now carry the error message as well as the error code. Bump the product SDK versions to 26.1.0 to match the @since of the securityManager ukey interfaces, and extend .gitignore so build output and the generated lock file stay out of the tree. Also fix three defects found while building the sample: compare the authentication result against UserAuthResultCode.SUCCESS instead of the deprecated ResultCode.SUCCESS whose value never matches, await addUserExtendCredential so a rejection reaches the retry logic, and guard getUserExtendCredential in unbindUsbKey with a try/catch. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Signed-off-by: h30053807 <huangxiao41@huawei.com> | 1 month ago | |
[feat] Add UsbKeyAuth sample for MDMKit Add USB key authentication sample application demonstrating enterprise device management capabilities. Co-Authored-By: Agent Signed-off-by: h30053807 <huangxiao41@huawei.com> | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 3 months ago |