Skip to content
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

Session not persistent on iPadOS. Works fine on iOS. [prefersEphemeralWebBrowserSession] #889

Open
shyamjimishra1993 opened this issue Nov 28, 2024 · 0 comments
Labels
bug triage Issues that need to be triaged

Comments

@shyamjimishra1993
Copy link

We are using AppAuth-iOS sdk for one of our project and once the login flow is completed through our app, When we go to the Safari browser(Normal window) and try to access the IDP page, It just logs in automatically fine In iPhone(iOS device) as the cookie is shared and accessible.

Now, when we try the same flow in an iPad Device Safari browser(Normal window), The session is not persisted for Safari browser and it asks for the user name and password again which leads to multiple other issues specific to our app.

Is there some known issue in iPadOS device regarding session and cookies. Why it doesn't work for iPadOS devices and works for iPhone(iOS) device. I am using the latest version of OS on both the devices(iOS 18.1.1 and iPadOS 18.1.1)

I see below code is inside OIDExternalUserAgentIOS responsible to allow the session sharing or Not.

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 if (@available(iOS 13.0, *)) { authenticationVC.presentationContextProvider = self; authenticationVC.prefersEphemeralWebBrowserSession = _prefersEphemeralSession; } #endif

I checked the value of authenticationVC.prefersEphemeralWebBrowserSession is False and tried setting it to false manually also. But still the issue persists. What could be causing this issue? Appreciate any help on this.

@shyamjimishra1993 shyamjimishra1993 added bug triage Issues that need to be triaged labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues that need to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant