question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Initialization error after login on Microsoft Edge

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [ x ] bug report -> please search for issues before submitting
- [ ] feature request

Versions.

Keycloak v3.1.0.Final Keycloak-Angular (angular6-keycloak3) v.3.0.2 Angular v6.1.4 Angular CLI v6.1.5

Microsoft Edge 42.17134.1.0 Windows 10 v1803 (build 17134.228)

Repro steps.

  • Using example ‘keycloak-heros’
  • Using Keycloak base installation.
  • Updating the ‘keycloak-heros’ keycloakConfig in environment to match.
  • Using Microsoft Edge on Windows.
  • On loading the app, the screen redirects to Keycloak, I authenticate, and then it redirects back to the app.

The log given by the failure.

ERROR An error happened during Keycloak initialization.

Desired functionality.

Currently shows a blank screen in Microsoft Edge 42 after successful login.

That’s all I get in the log, on trying to throw errors at that point I get problems with adding the error, with the Keycloak instance effectively being null. This is around line 200 of keycloak.service.ts. Although logging it to the console shows its methods (I assume from the typings).

I’ve spent a couple days trying different things, I don’t think it’s CORS, I don’t think it’s caching. On trying to debug with Edge the ‘token’ request comes through without information. My thinking is that Angular isn’t properly initialised before it fires off the token request, and that the module that comes from keycloak-js-bower isn’t making its way through properly.

I’m really stuck with this one, I’ve tried to get to the stage where I can debug (or ‘console.log’…) into the keycloak-js-bower repo but without success.

I would also like to give my thanks to the team for your continued hard work and responsiveness. I’ve previously raised an issue here and was updated very promptly!

Any other help I can provide I will be glad to try with some direction.

Many thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
trung674commented, Jan 7, 2019

I encountered this problem on live server only. It works almost fine in localhost (this bug pops up once in a while)

Edit (07/01/2019): After doing some more experiments, Edge generates this error when:

  • The client is deployed locally and the Keycloak server is deployed on live server (without certificate)
  • Both the client and Keycloak server are deployed on live servers but both using self-signed certificates.

It seems Edge has some default security policy that prevents Keycloak iframe from being loaded from untrusted source.

1reaction
jonkoopscommented, Jul 21, 2020

Closing this issue due to unresponsiveness and the death of Edge.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sign-in process initialization failed - Microsoft Community
sign-in process initialization failure Interactive sign in process initialization has failed. It is on a black screen at power up.
Read more >
Cannot access the PerkinElmer Download Center and receive ...
Please contact system administrator” error when trying to login into ... in Microsoft Edge (the error could be cached into your browser).
Read more >
Your Citrix Workspace App encountered an error while ...
Hi after updating the endpoints to CWA 2202 the endpoints get this error each day. ... I'm not sure if we even use...
Read more >
Initialization of SAP GUI for HTML failed - issue in Microsoft edge
Hi , I am running SAP portal link in Microsoft edge, after it asks for Logon credentials, and I press Enter, it runs...
Read more >
NET Framework initialization errors: CLR Activation Issues
If you disable 1Password extension in Microsoft Edge and reboot your PC, does the issue remain? Here is how you can do it:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found