Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Crash fix - when cancelling an authentication session #917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Prash88 wants to merge 3 commits into openid:master
base: master
Choose a base branch
Loading
from Prash88:crash-fix

Conversation

@Prash88
Copy link

@Prash88 Prash88 commented Apr 2, 2025

Steps to repro

In Example app,

Tap sign in, hit continue.
Move the app to the background.
Go to Settings > Safari > Clear History and Website Data.
Go into the app again. A new permission dialog is shown.
Tap Cancel. App crashes.

Recording from example app: https://streamable.com/5m16cx

Reasons for crash

The crash happens because of ASWebAuthenticationSession getting deallocated during or immediately after completion handler
http://ww.openradar.appspot.com/FB12132525

Fix explanation

As suggested, this crash can be mitigated by intentionally retaining the authentication session until after the dismiss animation is complete.

Copy link
Collaborator

Verified the crash described occurs in iOS example app with Okta and that the proposed fix prevents the crash.

Prash88 reacted with thumbs up emoji

@brnnmrls brnnmrls self-requested a review April 16, 2025 14:14
Copy link
Collaborator

@Prash88 Do you mind fixing the failing tests, please?

Prash88 reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@brnnmrls brnnmrls Awaiting requested review from brnnmrls

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /