AzureAD / SCIMReferenceCode

Reference code to build a SCIM endpoint to automate provisioning
MIT License
163 stars 107 forks source link

Postman Test data field names does not match the Resource data field names [See the 1st comment for enhancement suggestion] #79

Open Tasin5541 opened 2 years ago

Tasin5541 commented 2 years ago

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 image

Response image

Look at the ExternalIdentifier and ElectronicMailAddresses fields. Both are null in the response because the request had these fields as externalId and emails respectively. The test case for EnterpriseUser has more mismatched fields.

Tasin5541 commented 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.

quentin-49 commented 10 months ago

@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. :/