Last active
March 13, 2020 12:45
-
-
Save lbroudoux/64286b90e5ca1128d8c313c938efe716 to your computer and use it in GitHub Desktop.
secured-fruits-catalog-k8s-main.ts #keycloak
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
//platformBrowserDynamic().bootstrapModule(AppModule) | |
var keycloak = window["Keycloak"](location.origin + '/assets/keycloak-config.json'); | |
keycloak.init({onLoad: 'login-required'}).success(function (authenticated) { | |
if (authenticated) { | |
window['keycloak'] = keycloak; | |
platformBrowserDynamic().bootstrapModule(AppModule) | |
.catch(err => console.log(err)); | |
} | |
}).error(function () { | |
alert('Failed to initialize authentication subsystem.'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment