Before reporting an issue
Area
admin/api
Describe the bug
When sending a request to the POST /admin/realms/{realm}/organizations/{id}/members endpoint, Keycloak expects the content type to be application/json. However, it only accepts a plain text string (e.g., 95f019a8-977f-b7d5-f781-c1b2a3ef288c) rather than JSON-encoded data ("95f019a8-977f-b7d5-f781-c1b2a3ef288c"). This lead to the following issue with an auto-generated rest api client: fschick/Keycloak.RestApiClient#11 where to client would convert the input into a json string with double quotes but the Keycloak api expects a plain string without double quotes.
Version
26.0.2
Regression
Expected behavior
Either the api should change the definition to match the expected content type from application/json to text/plain or it accepts a JSON-encoded string.
Actual behavior
Currently the definition is set to application/json.
How to Reproduce?
I think fschick/Keycloak.RestApiClient#11 shows pretty accurately what the issue is.
Anything else?
No response
Before reporting an issue
Area
admin/api
Describe the bug
When sending a request to the POST /admin/realms/{realm}/organizations/{id}/members endpoint, Keycloak expects the content type to be application/json. However, it only accepts a plain text string (e.g.,
95f019a8-977f-b7d5-f781-c1b2a3ef288c) rather than JSON-encoded data ("95f019a8-977f-b7d5-f781-c1b2a3ef288c"). This lead to the following issue with an auto-generated rest api client: fschick/Keycloak.RestApiClient#11 where to client would convert the input into a json string with double quotes but the Keycloak api expects a plain string without double quotes.Version
26.0.2
Regression
Expected behavior
Either the api should change the definition to match the expected content type from application/json to text/plain or it accepts a JSON-encoded string.
Actual behavior
Currently the definition is set to application/json.
How to Reproduce?
I think fschick/Keycloak.RestApiClient#11 shows pretty accurately what the issue is.
Anything else?
No response