MSAL.Net和Xamarin.Forms重定向URL出现问题

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

我正在遵循本指南https://github.com/Azure-Samples/active-directory-xamarin-native-v2/tree/master/1-Basic

并且在我的app.xaml.cs中有此代码

public App()
{
    PCA = PublicClientApplicationBuilder.Create(applicationClientId)
            .WithTenantId("tenantidhere")
            .WithRedirectUri($"msal{applicationClientId}://auth")
            .WithIosKeychainSecurityGroup("com.microsoft.adalcache") // focussing on android first so ignore this one
            .Build();
    //...
}

我收到消息说返回网址有问题...,继续按钮似乎不起作用。我不知道这些问题是相关的还是分离的。

enter image description here

以下是我在天蓝色广告中的天蓝色设置:我觉得我不得不切换回“旧的体验”,因为这些指南/教程等似乎并未反映当前的Azure UI。

enter image description here

azure xamarin.forms azure-active-directory msal
1个回答
0
投票

您将使用应用程序的相应clientId更新MsalActivity.csAndroidManifest.xmlDataScheme的值。

© www.soinside.com 2019 - 2024. All rights reserved.