简体   繁体   English

Azure B2C Xamarin Forms,clientId 与 applicationId

[英]Azure B2C Xamarin Forms, clientId versus applicationId

I followed this sample https://github.com/Azure-Samples/active-directory-b2c-xamarin-native to implement Azure B2C auth in Xamarin Forms. I followed this sample https://github.com/Azure-Samples/active-directory-b2c-xamarin-native to implement Azure B2C auth in Xamarin Forms.

There are two GUID in the sample示例中有两个 GUID

B2CConstants  ClientID = "e5737214-6372-472c-a85a-68e8fbe6cf3c";

AndroidManifest.xml AndroidManifest.xml

<data android:scheme="msale5737214-6372-472c-a85a-68e8fbe6cf3c"

and

MsalActivity.cs  DataScheme = "msal90c0fe63-bcf2-44d5-8fb7-b8bbc0b29dc6")]

Info.plist信息列表

<string>msal90c0fe63-bcf2-44d5-8fb7-b8bbc0b29dc6</string>

The first one is the clientId for the registered app in tenant, what about the second?第一个是租户中注册应用的clientId,第二个呢?

Some blogs called applicationId, so how can I get this from the Azure portal?一些博客名为 applicationId,那么我如何从 Azure 门户获取此信息?

It's a Custom Redirect URI .You should make sure that your application has enabled the Native client setting and create it as shown in the following screenshot:这是一个自定义重定向 URI 。您应该确保您的应用程序已启用本机客户端设置并创建它,如以下屏幕截图所示:

在此处输入图像描述

You could look at this .你可以看看这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM