I have already used the search and could not find a topic on this, I have signed up to report this in the hope that the bug gets fixed
I recently reinstalled hub on my iPhone 16, The sign in with Passkey option does not work at all, it does not bring up the UI for selecting passkeys. It just immediately cancels
It is your phone and iOS issue because my 15+/iOS 16 works. Could it be actually the same issue all the time with your other DiscourseHub headache
Or maybe mine is broken because it isn’t broken
I don’t know. iOS 16 has been problematic in many ways. For one, it works perfectly, and at the same time, there are several different issues for other users.
In iOS 16, passkeys can be used in a WKWebView if the client app is using Associated Domains for the relying party.
We don’t have Associated Domains for all sites configured in DiscourseHub, hence, the passkey negotiation fails early.
I think the right solution here is to force the login process within the webview to use the same mechanism as when pressing the “Connect” button. It solves this and a few other authentication issues. (In the meantime, you can try authenticating on the site in DiscourseHub using the “Connect” button. Swipe right-to-left if you don’t see it and click the blue user icon button.)
A new beta of the mobile app has some fixes for this scenario. The short version is that the app now detects when users are trying to login from inside of the webview, and in those cases, it triggers a “protected” sign in process (using Apple’s ASWebAuthenticationSession), which should resolve this and similar issues.
The fix in DiscourseHub only addresses authenticating with a passkey. Adding one isn’t supported while in Hub, in fact, you shouldn’t even see the UI to add it.
The screenshot above is for second-factor security keys, we need to remove that from the app as well probably. Will make a todo for that.