[keycloak-dev] Make the application context path available on the HttpFacade

Marek Posolda mposolda at redhat.com
Tue Apr 25 05:47:15 EDT 2017


+1 to have the context path available on HttpFacade.

Marek

On 24/04/17 17:09, Sebastien Blanc wrote:
> Hi !
>
> While trying to fix https://issues.jboss.org/browse/KEYCLOAK-4342 I
> realized that I need to have the application context path.
> The fix is for the CookieTokenStore, it's failing currently when no
> application context is set (for instance a Spring Boot or WF Swarm app
> running directly under localhost:8080). (details are in the ticket)
>
> I was hoping to rely on this method getRelativePath();
> https://github.com/keycloak/keycloak/blob/master/adapters/spi/adapter-spi/src/main/java/org/keycloak/adapters/spi/HttpFacade.java#L51
> but for the Undertow implementation for instance , it returns an empty
> string.
>
> So, we could add a seperate method on the HttpFacade (or the
> KeycloakDeployment object) that returns the application context path, it's
> not trivial since it needs to be added to all the adapter implementations.
> WDYT ?
>
> Sebi
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev




More information about the keycloak-dev mailing list