Try our conversational search powered by Generative AI!
AI OnAI Off
EPiServer.ContentDeliveryApi 1.0.1
EPiServer.ContentDeliveryApi 2.1.0
Jul 20, 2018
Oct 30, 2018
Closed, Fixed and tested
Steps to reproduce:
Step to reproduce:
Expected:
Response body shows both "error" and "error_description" like below:
"error": "invalid_grant", "error_description": "Invalid user ID or password"
Actual:
Return error code 400 without error_description in response body:
"error": "invalid_grant"
Observed in code: context.SetError(OAuthErrors.InvalidGrant, "Invalid user ID or password'");
Note: Similar issue might happen in more scenarios as context.SetError() are called in different places with both parameters 'error' and 'errorDescription' but the message text of 'errorDescription' is not shown in response body.