Wednesday, February 21, 2024
HomeiOS DevelopmentiOS ASWebAuthenticationSession not sharing session with Safari (React Native Expo App)

iOS ASWebAuthenticationSession not sharing session with Safari (React Native Expo App)


We now have built-in the MSAL library utilizing react-native-msal into our react native code for iOS and Android purposes, and wish to reuse the login info in internet authentication (SAML).

On Android, after u login the person is beign redirected to App and when he clicks the SAML hyperlink a brand new chrome tab opens and the person is beign authenticated routinely via the session saved on chrome for that particular area. In any other case on IOS the person is prompted to login utilizing ASWebAuthenticationSession and beign redirected again to the app, however after he clicks a hyperlink safari app opens and immediate person to login once more.

On IOS Documentation its saying that ASWebAuthenticationSession which is the default from MSAL saves session from App to Safari, im even utilizing ios_prefersEphemeralWebBrowserSession .

Library used and variations:

"expo": "~50.0.7"
"react-native": "0.73.4",
"react-native-msal": "^4.0.4"
MSAL pod model 1.2.5

IOS model 17.2 on simulator and 17.2.1 on actual machine linked.

Thanks



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments