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

How to keep login status in iOS WKWebview #7439

Open
odhk-fe opened this issue Nov 22, 2024 · 0 comments
Open

How to keep login status in iOS WKWebview #7439

odhk-fe opened this issue Nov 22, 2024 · 0 comments
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.

Comments

@odhk-fe
Copy link

odhk-fe commented Nov 22, 2024

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:

  1. Does msal.js provide any methods to allow WKWebView in the iOS app to maintain the logged-in state?
  2. Is there any API that enables me to pass the accessToken and idToken obtained during iOS login, so I can automatically log in on the web?
@odhk-fe odhk-fe added feature-unconfirmed question Customer is asking for a clarification, use case or information. labels Nov 22, 2024
@github-actions github-actions bot added msal-browser Related to msal-browser package msal-react Related to @azure/msal-react public-client Issues regarding PublicClientApplications labels Nov 22, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Attention 👋 Awaiting response from the MSAL.js team label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant