Created
February 9, 2018 22:12
-
-
Save bandrzejczak/784f1b7ce85ee87087363db1dfe28856 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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