<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
I guess in your Angular application you're using something like:<br>
<br>
var keycloakAuth = new Keycloak('keycloak.json');<br>
<br>
right? So instead of this, you can read the Keycloak configuration
from some separate URI like:<br>
<br>
var keycloakAuth = new Keycloak('myconfig');<br>
<br>
Where the path 'myconfig' could be mapped to some servlet (or
jaxrs application if you prefer), which will return you the JSON
with the configuration. So instead of serving the configuration
directly from file keycloak.json, you will serve it from the
servlet (or jaxrs app). The servlet will run on server side, so
you can use whatever is good for your app to init the
auth-server-url dynamically (For example read it from System
property)<br>
<br>
Marek<br>
<br>
<br>
On 2.4.2015 19:21, Ryvlin, Andrey wrote:<br>
</div>
<blockquote
cite="mid:c56348ed91894eefae72897f2acb34db@BLM-MAIL01P.l1id.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi<o:p></o:p></p>
<p class="MsoNormal">I have AngularJs based UI web app talking
to RESTfull web services using Keycloak security.<o:p></o:p></p>
<p class="MsoNormal">Keycloak is running on a separate instance
of Wildfly having https connection.<o:p></o:p></p>
<p class="MsoNormal">UI Web application has keycloak.json file
with hardcoded Keycloak URL.<o:p></o:p></p>
<p class="MsoNormal">Everything works well with one problem:
when I need to install my web application to a different
environment I need to open WAR, modify keycloak.json with new
URL and package it back.<o:p></o:p></p>
<p class="MsoNormal">Since we deliver the entire installation to
the client, I don’t know their host names, so they have to
open WAR, which is in-convenient.
<o:p></o:p></p>
<p class="MsoNormal">Is there any way to avoid that? <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks‼<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks‼<o:p></o:p></p>
<p class="MsoNormal">-----------------<o:p></o:p></p>
<p class="MsoNormal">Andrey Ryvlin<o:p></o:p></p>
<p class="MsoNormal">Principal Software Engineer<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Phone: 952-979-8492<o:p></o:p></p>
<p class="MsoNormal">5705 W Old Shakopee Road, Suite 100<o:p></o:p></p>
<p class="MsoNormal">Bloomington, MN 55437 USA<o:p></o:p></p>
<p class="MsoNormal"><a moz-do-not-send="true"
href="mailto:ARyvlin@MorphoTrust.com">ARyvlin@MorphoTrust.com</a><o:p></o:p></p>
<p class="MsoNormal"><a moz-do-not-send="true"
href="http://www.morphotrust.com/">www.MorphoTrust.com</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><img id="Picture_x0020_3"
src="cid:part3.08090100.01060007@redhat.com"
alt="cid:image003.jpg@01CFF75A.60542BC0" border="0"
height="35" width="127"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font color="Gray" face="Arial" size="1"><br>
This message is only for the use of the intended recipient and
may contain information that is CONFIDENTIAL and PROPRIETARY to
MorphoTrust USA, Inc. If you are not the intended recipient,
please erase all copies of the message and its attachments and
notify the sender immediately.<br>
</font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</body>
</html>