Hi, I’m currently working on using Auth0’s Swift SDK to authenticate using the WebAuthentication.webViewProvider, but there is no way to set the preferred webkit user agent to mobile which our authentication requires for certain groups and so using this on an iPad the default user agent is always macOS, blocking our users from authenticating. Is there a way get around this OR is there a proper way to create our own custom provider? We are really wanting to create our own custom web kit web view provider to customize the the wekbit auth modal, but it seems like we are not able to do that due to not having access to the TranscationStore which seems required?
Hello,
Is there a way around the default macOS user agent in WebAuthentication.webViewProvider?
We have gotten around to setting the webkit’s preferred content mode to mobile after creating our own custom provider, similar to their web view provider. Just the caveat that we do not have access to the Transaction store, so our workaround is tapping in with the “Auth0.WebAuthentication.resume(…)”
Hi everyone!
Thank you @avo for sharing your solution to the issue at hand! Indeed, a custom user agent or provider can be created by modifying the webkits settings. As far as my knowledge goes, this is also stated in Apple’s WebKit Documentation.
Kind Regards,
Nik
Hi @nik.baleca, is this something that can become more extensible in regards to customizing either the webkit provider or even webkit configurations? Currently we do have to create our own webkit provider, but it just seems hacky for us to make it work since there is no clean access to the TranscationStore, and most of the classes in the SDK are not accessible either.