Skip to content

Instantly share code, notes, and snippets.

@bandrzejczak
Created February 9, 2018 22:12
Show Gist options
  • Save bandrzejczak/784f1b7ce85ee87087363db1dfe28856 to your computer and use it in GitHub Desktop.
Save bandrzejczak/784f1b7ce85ee87087363db1dfe28856 to your computer and use it in GitHub Desktop.
var keycloakConfig = {
"url": "http://localhost:8080/auth",
"realm": "master",
"clientId": "frontend",
"credentials": {
"secret": "1a1b98b6-66c5-4384-a4b4-7361717e773e"
}
};
var keycloak = Keycloak(keycloakConfig);
keycloak.init({
onLoad: 'login-required'
}).success(function () {
//User has logged in
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment