Skip to content

[#574] Remove external browser fallback#954

Open
w-goog wants to merge 4 commits intomasterfrom
gsi-issue-574-orchestral
Open

[#574] Remove external browser fallback#954
w-goog wants to merge 4 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 a review from mdmathias April 27, 2026 23:00
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.

1 participant