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.

Error: Could not initialized keycloak-js adapter - dsb-vue-keycloak.umd.js:125

See original GitHub issue

By using the example ‘typescript_vue3’ i got an javascript console error and couldnt get logged-in:

https://my.keycloak.com/auth/realms/mrealm/protocol/openid-connect/login-status-iframe.html/init?client_id=myclient&origin=http://localhost:8080 - [HTTP/3 403 Forbidden 321ms]

right after this i got

Error: Could not initialized keycloak-js adapter - dsb-vue-keycloak.umd.js:125

The settings for the realm in keycloak-js are correct and also https://localhost:8080/* is allowed as redirect uri

By using ‘hello-keycloak’ i got the following error and get successfully redirect to my keycloak login page after clicking on secret. Then i will be redirected to the account settings page /account/applications.

Error: Could not initialized keycloak-js adapter
    init dsb-vue-keycloak.umd.js:2556
 undefined dsb-vue-keycloak.umd.js:2557
    init dsb-vue-keycloak.umd.js:2557

What iam doing wrong?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
baltomcommented, Jul 9, 2021

Need to remove the ending /* in the Web Origins. As they are using your Origin header which does not contain the /* at the end

0reactions
Excel1commented, Jul 9, 2021

Many many thanks!! It works now 👍🏻

I thought i could wildcard there… Sorry for wasting your time.

At least i should read the hint… so sorry…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does someone has a working keycloak js adapter since 11.0.0?
It seems to happen when you try to initialize the KC adapter in script block in the <head/> tag. At this time, the...
Read more >
Github Com Dsb Norge Vue Keycloak Js - Amarta Karya
06/07/2021 Error: Could not initialized keycloak-js adapter - dsb-vue-keycloak.umd.js:125 The settings for the realm in keycloak-js are correct and also ...
Read more >
KEYCLOAK-16455 Solution to silent fails of JS adapter
Hello all,. Currently, init function in Keycloak JS adapter silently fails when Keycloak URL is unavailable or realm is wrongly configured.
Read more >
Keycloak javascript adapter fails to initialize - Stack Overflow
I am using keycloak-server 18.0.0 and keycloak-js 18.0.0 and I am trying ... straightforward but I can't manage to escape the catch promise....
Read more >
@dsb-norge/vue-keycloak-js - npm
This plugin uses the official Keycloak JS adapter ... user is logged-in to Keycloak or display the login page if not. check-sso will...
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