kilork / keycloak

Keycloak REST API Client
The Unlicense
62 stars 32 forks source link

Error description #136

Closed kilork closed 1 month ago

kilork commented 2 months ago

We have now field errorMessage but seems like it is not there actually, have to use error_description instead.

Correction. The logic there is looking for multiple fields actually:

String description = error.get("error_description");
String err = error.get("error");
String msg = error.get("errorMessage");
message = msg != null ? msg : err != null ? (description + " ["+ error.get("error") + "]") : null;