ebondu / angular2-keycloak

Angular 2 Keycloak client wrapper
19 stars 26 forks source link

How to use environment variables? #15

Closed andremanoel closed 6 years ago

andremanoel commented 7 years ago

In applications that use automated deploy it is necessary to inject the environment variables in the angular application. It is necessary to have another form of configuration besides the file keycloak.json What is the best way to include the settings through the environment variables?

ebondu commented 7 years ago

Hi, You may use differents keycloak.json files and then use angular environnements to set proper the file name when initializing the lib ?

ebondu commented 6 years ago

This functionality is now implemented in ng6 branch (v1.1.0)