From 72d3d4ef31746c97c8a32df3590ddb7dfd12971a Mon Sep 17 00:00:00 2001 From: Mark Schulte Date: Thu, 19 Mar 2020 08:15:04 -0700 Subject: [PATCH] AuthFallback: Stay in Riot App When doing a SAML based SSO via Gsuite, I must click a link specifying that I trust this app. That link will break me out of the SSO sign-in process, and open up safari. To fix address this, I've removed the feature that opens links in safari. Signed-off-by: Mark Schulte --- Riot/Modules/Home/Fallback/AuthFallBackViewController.m | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Riot/Modules/Home/Fallback/AuthFallBackViewController.m b/Riot/Modules/Home/Fallback/AuthFallBackViewController.m index b61b6361b..1955779af 100644 --- a/Riot/Modules/Home/Fallback/AuthFallBackViewController.m +++ b/Riot/Modules/Home/Fallback/AuthFallBackViewController.m @@ -203,14 +203,6 @@ NSString *FallBackViewControllerJavascriptOnLogin = @"window.matrixLogin.onLogin return; } - if (navigationAction.navigationType == WKNavigationTypeLinkActivated) - { - // Open links outside the app - [[UIApplication sharedApplication] openURL:navigationAction.request.URL options:@{} completionHandler:nil]; - decisionHandler(WKNavigationActionPolicyCancel); - return; - } - decisionHandler(WKNavigationActionPolicyAllow); }