<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">+1<br>
<br>
But not sure if hostname is sufficient. Shouldn't it rather be
whole origin including protocol and port?<br>
<br>
Marek<br>
<br>
On 22/10/15 08:42, Stian Thorgersen wrote:<br>
</div>
<blockquote
cite="mid:CAJgngAdtCmwE+QKtRqdDvraO50YHzceC-NDV18HnPtxJZ7u6sw@mail.gmail.com"
type="cite">
<div dir="ltr">Currently we have a few people having issues with
the fact that we use the URL of the request as the hostname for
Keycloak. For example to get the address sent in emails or as
the iss value in tokens. This works fine as long as everyone
accesses it using the proper domain name. However, it doesn't
work when servers are on the same local network use the direct
IP address or internal hostname.
<div><br>
</div>
<div>The simplest solution to this would be to add an option to
set the hostname for the server. This would be configured in
keycloak-server.json, but we'd also support setting it with a
system property. Default would be to use the request-url as we
do now, but once specified we would not use the request-url
anymore and always use the configured hostname as the base
URL.<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
</blockquote>
<br>
</body>
</html>