<div dir="ltr">+1 Yep, by hostname I meant base url ;)</div><div class="gmail_extra"><br><div class="gmail_quote">On 22 October 2015 at 13:50, Sebastian Rose <span dir="ltr">&lt;<a href="mailto:sebastian.rose@aoe.com" target="_blank">sebastian.rose@aoe.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>+1 (for full origin)</p>
<p> </p>
<p>Regards, Sebastian</p>
<div style="color:rgb(33,33,33)">
<hr style="width:98%;display:inline-block">
<div dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>Von:</b> <a href="mailto:keycloak-dev-bounces@lists.jboss.org" target="_blank">keycloak-dev-bounces@lists.jboss.org</a> &lt;<a href="mailto:keycloak-dev-bounces@lists.jboss.org" target="_blank">keycloak-dev-bounces@lists.jboss.org</a>&gt; im Auftrag von Marek Posolda &lt;<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>&gt;<br>
<b>Gesendet:</b> Donnerstag, 22. Oktober 2015 13:14<br>
<b>An:</b> <a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>; keycloak-dev<br>
<b>Betreff:</b> Re: [keycloak-dev] Ability to set hostname for server</font>
<div> </div>
</div><div><div class="h5">
<div>
<div>+1<br>
<br>
But not sure if hostname is sufficient. Shouldn&#39;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 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&#39;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&#39;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></fieldset> <br>
<pre>_______________________________________________
keycloak-dev mailing list
<a href="mailto:keycloak-dev@lists.jboss.org" target="_blank">keycloak-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
</blockquote>
<br>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>