Open Tasin5541 opened 2 years ago
My bad, I was trying to integrate this in an existing .net core application that was using text.json
for serialization instead of newtonsoft
and sadly it does not support DataContract
(why Microsoft??). So I might need to change the models with JsonPropertyName
.
Shouldn't this project be using the default json serializer for .net core 3.1 instead of using newtonsoft? I mean this is a Microsoft project that doesn't use their own library and doesn't want to support DataContract
in their default library either. It's very confusing.
@Tasin5541 Where/How did you get your response from Azure AD ? I haven't seen anywhere in azure AD how to get the response done by them. :/
The test cases provided for Postman has mismatched data field names and as a result, The returned response from the api has null values for those mismatched fields.
Example:
Request
Response
Look at the
ExternalIdentifier
andElectronicMailAddresses
fields. Both are null in the response because the request had these fields asexternalId
andemails
respectively. The test case for EnterpriseUser has more mismatched fields.