Skip to content

Instantly share code, notes, and snippets.

@kmikulski kmikulski/post.jsx
Created Jun 7, 2018

Embed
What would you like to do?
the description for this gist
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
});
@anodynos

This comment has been minimized.

Copy link

anodynos commented Feb 4, 2019

You need quotes around keys with dashes - eg 'ssl-required' - so:

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
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.