i’m using the keycloak.js adapter that i’ve included ( src= “http://localhost:8080/js/keycloak.js” async defer) from the kcycloak server which i downloaded recently, version 23.0.4. I’m running under docker.
when i use the login method or the createLoginUrl method an exception is thrown.
my code is
// Click-handler for signin button
function do_keycloak_signin(){
const keycloak = new Keycloak({
url: 'http://localhost:8080',
realm: 'openemr-local',
clientId: '{{ keycloakSigninClientID}}'
});
keycloak.adapter = "default";
adapter = keycloak.adapter ;
authenticated = keycloak.authenticated;
auth_string = `User is ${authenticated ? 'authenticated' : 'not authenticated'}`;
// document.getElementById("kc_debug").innerHTML = "<br> kc_debug adapter is: " + adapter + " ;user is" + auth_string;
keycloak.createLoginUrl({
idpHint: 'google'
});
has anyone any insight into this, or is it a bug that i should report?
i know downloading the adapter in this way is deprecated. I also tried to down load the file directly from the down load page downloads - Keycloak
but both the zip and the tar.gz buttons gave a ‘not found’ or 404 error. the npm does work and i notice it’s version 23.0.7 - so let me try that version too - does any one know if this fixes this problem?