When user gets redirected to keycloak login and put in credentials and hit login, the redirect to the next page (react-oidc secured component) causes the error seen above. Seems that i tries to inintialize the auth but the OidcTrustedDomains config is not loaded in time for the OidcServiceWorker. Only happens after login on auth provider. When reloading website no error occurs.
Also i got a non Error in console on that:
TypeError: Failed to fetch
at ke (:3000/static/js/bundle.js:136546:34)
at r (:3000/static/js/bundle.js:136623:41)
at Object.startKeepAliveServiceWorker (:3000/static/js/bundle.js:136658:42)
at :3000/static/js/bundle.js:137325:178
at async n (:3000/static/js/bundle.js:137803:19)
at async ks (:3000/static/js/bundle.js:137633:9)
After that also the fetching of "/.well-known/openid-configuration" from auth provider which is present and available, fails.
When following the url there is the openid-configuration present.
Issue and Steps to Reproduce
When user gets redirected to keycloak login and put in credentials and hit login, the redirect to the next page (react-oidc secured component) causes the error seen above. Seems that i tries to inintialize the auth but the OidcTrustedDomains config is not loaded in time for the OidcServiceWorker. Only happens after login on auth provider. When reloading website no error occurs.
Also i got a non Error in console on that:
After that also the fetching of "/.well-known/openid-configuration" from auth provider which is present and available, fails. When following the url there is the openid-configuration present.
Also the fetch on "https://myDomain.de/OidcKeepAliveServiceWorker.json?minSleepSeconds=150" fails, like mentioned here (no OidcKeepAliveServiceWorker.json is present in public folder): https://github.com/AxaFrance/oidc-client/pull/1355
What could lead to this problems?
Versions
7.13.6
Additional Details