Azure Active Directory B2C -
i implement azure ad b2c , user's first name , last name not figure out way job title or street address, office number. follow following code
[policyauthorize(policy = "b2c_1_sign_in")] public actionresult claims() { claim displayname = claimsprincipal.current.findfirst(claimsprincipal.current.identities.first().nameclaimtype); viewbag.displayname = displayname != null ? displayname.value : string.empty; return view();
}
it comes tutorial https://azure.microsoft.com/en-us/documentation/articles/active-directory-b2c-devquickstarts-web-dotnet/ when debug program, not find job title or street address. may need use ad graph or something. check claim profile on azure portal. looks correct. there suggestion?
you need select user attributes - job title,street address, office number in signup or signin profile available in access token.
Comments
Post a Comment