Azure Mobile app

Somnath Shukla 406 Reputation points

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.

Universal Windows Platform (UWP)
Azure Active Directory External Identities
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 24,051 Reputation points Microsoft Employee


    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 I can keep you in the loop on fixes to this.

    0 comments No comments