Open omindu opened 5 years ago
I'm working on this issue.
@omi Update: Fixing this issue will introduce a change in the existing API. It might break the flow in existing client applications due to the change in the API response. Hence, it was decided to return the response as it is without changing it.
Code snippet related to this issue is located at wso2-extensions/identity-governance repository, in this line.
Moved from: https://wso2.org/jira/browse/IDENTITY-7373
Hi,
I'm using the Self Registration REST API (v0.9) of Identity Server 5.3.0.
This is what I added in/repository/conf/identity/identity.xml:
The important thing here is that I have disable the internal management of the notifications because I want to manage it myself.
So when I use the Register User (https://localhost:9443/api/identity/user/v0.9/me) resource of the API it returns the Validation Code so I can handle it. But the Content-Type of the response is application/json and the body is a plain text. Here is an example:
When there is an error all goes well because in that case the Content-Type is application/json and the body is a JSON:
Maybe a simple solution could be include the Validation Code in a JSON:
The same happens with the Resend Code (https://localhost:9443/api/identity/user/v0.9/resend-code) resource of the API. Here is an example of response:
Thanks!