Securing Angular 2 App with Keycloak based on routes.
Installation:
To install generate the keycloak.json file from your Keycloak client in the admin console.
Place the keycloak.json in the root of the project.
Change realmname and redirect_uri in services/keycloak.service.ts in variable Keycloak.auth.logoutUrl
Run npm install
Run npm start