简体   繁体   中英

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.

There are two GUID in the sample

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

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?

Some blogs called applicationId, so how can I get this from the Azure portal?

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:

在此处输入图像描述

You could look at this .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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