Repository navigation
Windows Hello/Iris/Pin Authentication with HL2 and Windows 21H1 #9911
|
We've hit a pretty serious issue with Authentication when our HoloLens 2 devices automatically upgraded to Windows 21H1. The call we are using UserConsentVerifier.RequestVerificationAsync either returns Canceled or doesn't return. Checked on the Slack pages and another development team have hit the same issue and I've added a response to their observation. Tried with Unity 2019.4.17f1 and 2019.4.26f1. Packages work ok against a HL2 with an older version of Windows, but it's broken for Windows 21H1. Has anyone here spotted anything similar/have a work around/sympathy? |
Replies: 11 comments 6 replies
|
Hey Mark Evans (@mevsie), this is external a bug external to the MRTK. Please follow the instructions here to file this bug against the HoloLens, https://docs.microsoft.com/en-us/hololens/hololens-feedback |
|
Issue was resolved by explicitly running the command on the UI thread - hat tip to Steve Leigh on the HoloDevelopers slack page. |
|
Hi, How do I implement this Iris login into my Unity project? I've searched all over the internet and couldn't find it. Can you guys help? |
|
Thank you very much for your contributions. I figured it out by myself. ✌🏽 |
|
If anyone wants to Implement this feature I'm adding the code here. `using UnityEngine; public class IrisLogin : MonoBehaviour }` `using UnityEngine; namespace LoginManager #if WINDOWS_UWP #endif |
|
After the Hololens got updated to 20XXX the above script stopped working. I can see the CredDialogHost.exe running with the help of Hololens portal. But the Iris scanner doesn't show in the lens. It used to work before in Hololens 19XXX. Any idea what went wrong? |
|
Make a helper class to run the function on the UI thread. e.g. LaunchHelper Then call the request verification via the helper - e.g. |
|
It's about making sure that the stuff runs on the main thread - rather than any old thread. Here's the code I missed off, sorry about that. |
|
using UnityEngine; public class IrisLogin : MonoBehaviour #if WINDOWS_UWP #if WINDOWS_UWP #endif } |
|
You're running the method CreateKeyAsync on the UI thread, but then are executing the majority of the method on another thread using task.run. i.e. get rid of the extra task.run. |
|
Ok, I finally made this to work. All you need is three scripts. I'm attaching the scripts in this post as well. Thank you Mark Evans (@mevsie) for spending time with me on this task. You missed to mention the extension class. |
Issue was resolved by explicitly running the command on the UI thread - hat tip to Steve Leigh on the HoloDevelopers slack page.