-
-
Notifications
You must be signed in to change notification settings - Fork 203
Return SSO error as object #126
Comments
Using the error code won't make it useful in this case at least? you already have the email you use to make the request. |
The app doesn't have anything. It's like someone opening the page fresh. The only info the app has is the info you provide it in the query parameters 🙂 |
Ah you are right! Would this work: {
"error": {
"code": 111,
"attributes": {
"email": "rijkvanzanten@me.com"
}
}
} That way we can add more attributes for future errors. |
Yep, looks good! We could maybe drop the {
"code": 111,
"attributes": {
"email": "rijkvanzanten@me.com"
}
} |
oh wait, These are passed through query strings, so it will ended up: |
Can't we pass it as a JSON string in the parameter?
|
I can, I was trying not to use json. I will update to fit your needs. One more question does the original error message will be gone or be inside with the |
Ehh IMO we can get rid of it. The actual error translations will live in the application. As long as we have the code (and the docs that say what code means what), we're solid.
I get what you're saying.. We could also move to |
Okay, I will change it to |
One thing |
Hahaha, I am out.
|
Already implemented as |
Right now, an invalid login is returned as an (English) string:
http://localhost:8080/login?error=User%20with%20email%20%22rijkvanzanten%40me.com%22%20not%20found
With i18n in mind, there is no way to accurately translate this right now.
It would be perfect if the API would return
that way, the app can map
111
to the stringUser with email "${email}" not found
.The text was updated successfully, but these errors were encountered: