Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response from Auth endpoints come as HTML instead of JSON #359

Open
marcopacurariu3 opened this issue Sep 7, 2023 · 0 comments
Open

Response from Auth endpoints come as HTML instead of JSON #359

marcopacurariu3 opened this issue Sep 7, 2023 · 0 comments

Comments

@marcopacurariu3
Copy link

Hello,

While calling the Wicked API endpoint /auth/local/api/search/token with an invalid scope, the response from the client is in HTML format. That is because, if an endpoint is called in a browser (also for example to get a 404), there is a pretty format, being HTML. However, usually the clients are using API REST calls and it would be more suitable to have a JSON response.

One other solution would be to allow configuration of the response type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant