MSAL.Net 和 Xamarin.Forms 重定向有问题 url
MSAL.Net and Xamarin.Forms having problem with redirect url
我正在按照本指南进行操作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();
//...
}
我收到消息说 return url... 出现问题,继续按钮似乎不起作用。我不知道这些问题是相关的还是分开的。
这是我在 azure AD 中的 azure 设置:
我觉得我必须切换回 'old experience',因为 guides/tutorials 等似乎没有反映当前的 Azure UI。
您将在 MsalActivity.cs
和 AndroidManifest.xml
上使用您的应用程序对应的 clientId 更新 DataScheme 的值。
我正在按照本指南进行操作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();
//...
}
我收到消息说 return url... 出现问题,继续按钮似乎不起作用。我不知道这些问题是相关的还是分开的。
这是我在 azure AD 中的 azure 设置: 我觉得我必须切换回 'old experience',因为 guides/tutorials 等似乎没有反映当前的 Azure UI。
您将在 MsalActivity.cs
和 AndroidManifest.xml
上使用您的应用程序对应的 clientId 更新 DataScheme 的值。