From cfe33c63dbd34f5e0813a12bb362345754d28e07 Mon Sep 17 00:00:00 2001 From: Lebas Stevens Date: Fri, 12 Jul 2024 09:27:28 +0200 Subject: [PATCH] Force to use SFSafariViewController --- Sources/AppAuth/iOS/OIDExternalUserAgentIOS.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/AppAuth/iOS/OIDExternalUserAgentIOS.m b/Sources/AppAuth/iOS/OIDExternalUserAgentIOS.m index 4a8cda0a3..18c955276 100644 --- a/Sources/AppAuth/iOS/OIDExternalUserAgentIOS.m +++ b/Sources/AppAuth/iOS/OIDExternalUserAgentIOS.m @@ -99,7 +99,7 @@ - (BOOL)presentExternalUserAgentRequest:(id)request NSURL *requestURL = [request externalUserAgentRequestURL]; // iOS 12 and later, use ASWebAuthenticationSession - if (@available(iOS 12.0, *)) { + /*if (@available(iOS 12.0, *)) { // ASWebAuthenticationSession doesn't work with guided access (rdar://40809553) if (!UIAccessibilityIsGuidedAccessEnabled()) { __weak OIDExternalUserAgentIOS *weakSelf = self; @@ -163,7 +163,7 @@ - (BOOL)presentExternalUserAgentRequest:(id)request _authenticationVC = authenticationVC; openedUserAgent = [authenticationVC start]; } - } + }*/ // iOS 9 and 10, use SFSafariViewController if (@available(iOS 9.0, *)) { if (!openedUserAgent && _presentingViewController) {