Keycloak error page#57
Conversation
|
Kudos, SonarCloud Quality Gate passed! |
peterrogov
left a comment
There was a problem hiding this comment.
Good start. But this is too narrow.
-
We only use the previous problem with keycloak as an example. The code we make here must handle any (!) error that might occur in the app and go unhandled. Any unhandled exception anywhere.
-
You might really want to consider using ErrorBoundary for this. Read about it.
-
An error occurred during keycloak initializationis a bad idea. Do not allow your user-facing error message to leak any significant implementation details about the app. This violates security very much. You want your logs, that are only visible to admins, to have every neccessary details. But user facing messages must be user facing. In this case just "Service temporary unavailable" or at most "Due to a technical problem we cannot authenticate you right now". That's it.








No description provided.