Hi there,
I recently opened a ticket
regarding the javascript adapter and its initialization behavior - in a
nutshell it silently fails when it tries to contact the keycloak server
but the server is offline (or the adapter is configured with the
incorrect url).
During
the investigation,
Michal Hajas identified some other potential issues relating to the
adapter and its use of promises, which I understand may impact testing
and browser compatibility.
I'm starting a conversation here to get opinions on the best way to resolve the issue, specifically
-
how to report this type of failure back to the client during
initialization (presumably a vanilla exception, or with a specific
callback hook perhaps?)
- what (if anything) needs to be done regarding the use of promises, both for the test framework and browser support.
To
be clear, I'm very much a newcomer to javascript, so I'm mostly
starting the conversation to move the issue forward - I know just enough
to know my opinions are dangerous :D
Regards,
Andrew