SCIMReferenceCode icon indicating copy to clipboard operation
SCIMReferenceCode copied to clipboard

Status Code being set to 201 on PUT request

Open noorez opened this issue 1 year ago • 1 comments

https://github.com/AzureAD/SCIMReferenceCode/blob/12f21fbe90a09cc7acf8f834da73f482e3af9a34/Microsoft.SystemForCrossDomainIdentityManagement/Service/Controllers/ControllerTemplate.cs#L33

It appears that the status code is being set to 201 here, however, in the ControllerTemplate.Put action, we return an Ok (201) result ... which status code will be used here? The speicification for SCIM indicates it should be a 200 result (unless otherwise stated).

noorez avatar May 30 '23 14:05 noorez

Ok should overwrite StatusCode set by this ConfigureResponse function. I.e. Ok(result) should set it to 200.

Sefriol avatar May 20 '24 15:05 Sefriol