-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 6 replies
-
Hey @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 |
Beta Was this translation helpful? Give feedback.
-
Issue was resolved by explicitly running the command on the UI thread - hat tip to Steve Leigh on the HoloDevelopers slack page. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your contributions. I figured it out by myself. ✌🏽 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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.
|
Beta Was this translation helpful? Give feedback.
-
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.
|
Beta Was this translation helpful? Give feedback.
-
using UnityEngine; public class IrisLogin : MonoBehaviour
#if WINDOWS_UWP
#if WINDOWS_UWP
#endif
} |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 @mevsie for spending time with me on this task. You missed to mention the extension class. |
Beta Was this translation helpful? Give feedback.
Issue was resolved by explicitly running the command on the UI thread - hat tip to Steve Leigh on the HoloDevelopers slack page.