Xamarin iOS中的MSAL确认对话框

问题描述 投票:0回答:2

我们正在使用Microsoft MSAL库来验证我们的用户。当用户需要登录时,他们每次都会显示此对话框。有没有一种方法可以禁用此提示,从而使登录体验更加无缝?

enter image description here

xamarin.forms xamarin.ios msal
2个回答
1
投票

0
投票
关键是这条线...

.WithUseEmbeddedWebView(true)

这里是通过交互方式获取令牌的更完整的示例。

        var authResult = await PCA.AcquireTokenInteractive(Constants.B2CConstants.Scopes)
                                  .WithAccount(GetAccountByUsername(accounts, username))
                                  .WithUseEmbeddedWebView(true)
                                  .ExecuteAsync();
© www.soinside.com 2019 - 2024. All rights reserved.