Skip to content

Commit

Permalink
Force to use SFSafariViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
Lebas Stevens committed Jul 12, 2024
1 parent c89ed57 commit cfe33c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/AppAuth/iOS/OIDExternalUserAgentIOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ - (BOOL)presentExternalUserAgentRequest:(id<OIDExternalUserAgentRequest>)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;
Expand Down Expand Up @@ -163,7 +163,7 @@ - (BOOL)presentExternalUserAgentRequest:(id<OIDExternalUserAgentRequest>)request
_authenticationVC = authenticationVC;
openedUserAgent = [authenticationVC start];
}
}
}*/
// iOS 9 and 10, use SFSafariViewController
if (@available(iOS 9.0, *)) {
if (!openedUserAgent && _presentingViewController) {
Expand Down

0 comments on commit cfe33c6

Please sign in to comment.