Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Acquire silent token with web view #74

@piyush-agr44

Description

@piyush-agr44

Hello,
I am acquiring interactive token with web view and it works fine with sharing credential across multiple wkwebview using process pool.

But now, I want to acquire token silently and need to use same logic as web view to share credential using process pool.

My code for Interactive Login as follow:

let webViewParams = MSALWebviewParameters(authPresentationViewController: viewController)      
webViewParams.webviewType = .wkWebView

      if let webView = webViewParams.customWebview {
           let config = webView.configuration
           config.processPool = WebViewSessionManager.shared.processPool
           config.websiteDataStore = .default()
   }
            
  let parameters = MSALInteractiveTokenParameters(scopes: MSALConstants.kScopes, 
                                                  webviewParameters: webViewParams)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions