How to keep login status in iOS WKWebview #7439
Labels
feature-unconfirmed
msal-browser
Related to msal-browser package
msal-react
Related to @azure/msal-react
Needs: Attention 👋
Awaiting response from the MSAL.js team
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL.js (@azure/msal-browser)
Wrapper Library
MSAL React (@azure/msal-react)
Public or Confidential Client?
Public
Description
Thank you for taking the time to look into this issue.
I greatly appreciate the convenience Azure AD B2C provides, but I’ve encountered difficulties with integrating it across iOS and web platforms.
After logging in using the MSAL for iOS SDK, when I open a webpage requiring login via WKWebView, the webpage prompts me to log in again.
Both the redirect_url for my iOS app and the redirect_url for the SPA are registered under the same application. I assumed they should share the session.
I came across this documentation: Customize Webviews with MSAL for iOS. I’ve also tried using ASWebAuthenticationSession and SFAuthenticationSession, but neither approach retained the logged-in state.
Here are my questions:
The text was updated successfully, but these errors were encountered: