Skip to content

Instantly share code, notes, and snippets.

@Danny-P
Created June 14, 2018 17:19
Show Gist options
  • Save Danny-P/3b85a4f7162966118e621517c756c711 to your computer and use it in GitHub Desktop.
Save Danny-P/3b85a4f7162966118e621517c756c711 to your computer and use it in GitHub Desktop.
Demo keycloak
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`.
import { KeycloakConfig } from 'keycloak-angular';
// Add here your keycloak setup infos
let keycloakConfig: KeycloakConfig = {
url: 'https://development.danielpomrehn.net:8443/auth',
realm: 'heros',
clientId: 'app'
};
export const environment = {
production: false,
assets: { dotaImages: 'https://api.opendota.com/apps/dota2/images' },
apis: { dota: 'https://api.opendota.com/api' },
keycloak: keycloakConfig
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment