Single Sign On using MSAL in iOS app and Webview

Geo*_*mas 6 single-sign-on ios azure-active-directory azure-ad-msal

I am trying to enable SSO in our native iOS application. The scenario is

  1. Implementing Sign in with microsoft using MSAL in organisational account
  2. After logging in to the iOS application we need to open another of our web app(added in Azure directory) in a webview

What all should we do to enable SSO in iOS application and open the microsoft service within the application with webview.

当我尝试使用 MSAL 实现这一点时,用户体验是用户登录到应用程序,当我们尝试使用 webview 打开 webapp 时,它要求登录,而不是我们需要 webview 静默登录

在我用 angular 编写的 webapp 中,我调用

  async getAccessToken(): Promise<string> {
    let result = await this.msalService.acquireTokenSilent(OAuthSettings.scopes)
      .catch((reason) => {
        this.alertsService.add('Get token failed', JSON.stringify(reason, null, 2));
      });
Run Code Online (Sandbox Code Playgroud)

"@azure/msal-angular": "^0.1.4",在我们的 angular 应用程序中使用了与 MSAL 进行签名。

任何帮助将不胜感激。

文档

微软文档