mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
Authentication: Redirect webview (SSO) javascript logs to native logs
This commit is contained in:
@@ -56,6 +56,9 @@ NSString *FallBackViewControllerJavascriptOnLogin = @"window.matrixLogin.onLogin
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
||||
// Catch js logs
|
||||
[self enableDebug];
|
||||
|
||||
// Due to https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html, we hack
|
||||
// the user agent to bypass the limitation of Google, as a quick fix (a proper solution will be to use the SSO SDK)
|
||||
webView.customUserAgent = @"Mozilla/5.0";
|
||||
|
||||
Reference in New Issue
Block a user