You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When is returned a 401 status code with content type application/prs.hal-forms+json and proper payload, the HAL Explorer will not display the Links and HAL-FORMS Template Elements sections on the left. There is already an Issue related to OIDC, I guess with redirects. My proposal is in the direction that if the api returns an proper HAL-FORMS template, that this would be properly rendered.
Content Type application/x-www-form-urlencoded
The HTTP Request Input form could render properly the "Body" with the Content Type application/x-www-form-urlencoded. Currently, it is always rendered as json and should be rendered as an url encoded string.
The expected result in the Body textarea would be:
The server could provide a "_templates" instructing the client how/where to login or where to register as a new user.
I guess would be the same behaviour of application which redirect users to the login page.
Having that in HAL-Explorer would be great to keep APIs consistent too. The person would not need to get out of HAL-Explorer to do the authentication. The only thing would be required is copy the access token and copy as a header authorization. This if HAL-Explorer does not support and do automatically for the user.
Now I need to go to some script and do a request to Keycloak, copy the access token from there and past in HAL-Explorer.
Status code 401
When is returned a 401 status code with content type application/prs.hal-forms+json and proper payload, the HAL Explorer will not display the Links and HAL-FORMS Template Elements sections on the left.
There is already an Issue related to OIDC, I guess with redirects. My proposal is in the direction that if the api returns an proper HAL-FORMS template, that this would be properly rendered.
Content Type application/x-www-form-urlencoded
The HTTP Request Input form could render properly the "Body" with the Content Type application/x-www-form-urlencoded. Currently, it is always rendered as json and should be rendered as an url encoded string.
The expected result in the Body textarea would be:
client_id=api&client_secret=abc123&username=foo&password=bar&grant_type=password
Sample Project
Here is a sample project reproducing the issues.
The text was updated successfully, but these errors were encountered: