Skip to content

[#574] Remove external browser fallback#954

Merged
w-goog merged 6 commits intomasterfrom
gsi-issue-574-orchestral
May 4, 2026
Merged

[#574] Remove external browser fallback#954
w-goog merged 6 commits intomasterfrom
gsi-issue-574-orchestral

Conversation

@w-goog
Copy link
Copy Markdown
Collaborator

@w-goog w-goog commented Apr 27, 2026

This PR "fixes" the crash in GSI 9.0 by removing OIDExternalUserAgentiOS's call to [UIApplication sharedApplication] openURL:requestURL]. Since the ASWebAuthenticationSession can be used for almost all sign-ins, the fallback is much less relevant.

There is one caveat - Guided Access Mode. Before this change, the app would crash when attempting to open the external browser in Guided Access Mode. Now, it fails silently. While this is a strict improvement in behaviour, it offers no real way for AppAuth-iOS to be used by applications utilizing Guided Access Mode. I explored the new API Apple provided, and was unsuccessful in routing to a functioning browser. As this change is still an improvement over the current behaviour, I'll leave additional investigation for future work - filed as issue #953.

Testing: I've tested successful sign-in via the new Swift sample app. I also confirmed that Guided Access Mode replicates the crash; and that this change causes an internal error rather than a crash.

@w-goog w-goog requested review from mdmathias and mingyokim and removed request for mdmathias April 27, 2026 23:00
Comment thread Sources/AppAuth/iOS/OIDExternalUserAgentIOS.h Outdated
Comment thread Sources/AppAuth/iOS/OIDExternalUserAgentIOS.m
@w-goog w-goog merged commit 77e32a8 into master May 4, 2026
10 checks passed
@w-goog w-goog deleted the gsi-issue-574-orchestral branch May 4, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants