Azure Mobile app

Somnath Shukla 411 Reputation points
2020-01-22T02:35:15.893+00:00

I have UWP app backend is azure mobile app service. I have configured azure b2c as authnetication. from last six month it is working fine.
on my client side i am using DefaultManager.CurrentClient.CurrentUser.UserId which give me userid {sid:value} format.
on server side this code was also giving {sid:value} and provider was aad

var identity = User as ClaimsPrincipal;  
var userClaim = identity?.Claims.FirstOrDefault(b => b.Type == ClaimTypes.NameIdentifier);  

from 20 December it is giving directly from b2c.
when i send the same request to local code it works as expected. but if i debug using attaching to azure mobile app. i am getting the same different value.

Now from 21 Jan on server it is again giving userid as {sid:value} format.
what is the correct format i can not keep changing my code.

https://github.com/Azure/azure-mobile-apps-net-server/issues/33

Universal Windows Platform (UWP)
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,639 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 33,801 Reputation points Microsoft Employee
    2020-01-29T00:42:57.417+00:00

    Hi,

    Thank you for raising this to our attention! I have created a bug to address this. As of yet I have not seen an update from the PG. If you send me an email at AzCommunity@microsoft.com I can keep you in the loop on fixes to this.

    0 comments No comments