Created
June 7, 2018 17:42
-
-
Save kmikulski/e0d34a62488642093502aa0ded88a904 to your computer and use it in GitHub Desktop.
the description for this gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const keycloak = Keycloak({ | |
realm: "MyDemo", | |
auth-server-url: "http://localhost:8080/auth", | |
ssl-required: "external", | |
resource: "my-react-client", | |
public-client: true, | |
confidential-port: 0 | |
}); |
If I use a JS object I get an error.
const keycloak = Keycloak({
realm: 'master',
'auth-server-url': 'https://[redacted]/auth',
'ssl-required': 'external',
resource: '[redacted]',
'public-client': true,
'confidential-port': 0,
});
error:
uncaught exception: clientId missing
trace:
loadConfig keycloak.js:723
init keycloak.js:137
value index.js:397
value index.js:378
any idea?
@anodynos @kmikulski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need quotes around keys with dashes - eg
'ssl-required'
- so: