我正在遵循本指南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();
//...
}
我收到消息说返回网址有问题...,继续按钮似乎不起作用。我不知道这些问题是相关的还是分离的。
以下是我在天蓝色广告中的天蓝色设置:我觉得我不得不切换回“旧的体验”,因为这些指南/教程等似乎并未反映当前的Azure UI。
您将使用应用程序的相应clientId更新MsalActivity.cs
和AndroidManifest.xml
上DataScheme的值。