[keycloak-dev] Ability to set hostname for server

Sebastian Rose sebastian.rose at aoe.com
Thu Oct 22 07:50:27 EDT 2015


+1 (for full origin)



Regards, Sebastian

________________________________
Von: keycloak-dev-bounces at lists.jboss.org <keycloak-dev-bounces at lists.jboss.org> im Auftrag von Marek Posolda <mposolda at redhat.com>
Gesendet: Donnerstag, 22. Oktober 2015 13:14
An: stian at redhat.com; keycloak-dev
Betreff: Re: [keycloak-dev] Ability to set hostname for server

+1

But not sure if hostname is sufficient. Shouldn't it rather be whole origin including protocol and port?

Marek

On 22/10/15 08:42, Stian Thorgersen wrote:
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.

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.



_______________________________________________
keycloak-dev mailing list
keycloak-dev at lists.jboss.org<mailto:keycloak-dev at lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/keycloak-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20151022/ae908554/attachment.html 


More information about the keycloak-dev mailing list