Hi,

One possible way is to put nginx as a reverse proxy in between browser and Keycloak server instance. You can dig around using $content_type embedded variable of nginx ngx_http_core_module or may be nginx_rewrite module and a simple tweak (may be an if statement in nginx server/location block config) will help you in achieving the required. Based on the value of content-type header, you can proxy-pass the requests to a different upstream server via nginx.

Cheers,


On Fri, Oct 2, 2015 at 2:19 PM, Tair Sabirgaliev <tair.sabirgaliev@bee.kz> wrote:
 
Hi,

Is it possible to setup login redirection only for certain content types? 
I want to redirect only when the browser asks for text/html. For other types
either 40x or Authorization challenge.
 
--
Tair Sabirgaliev
Bee Software, LLP



_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user



--
 
 
Giriraj Sharma, 
Department of Computer Science 
National Institute of Technology Hamirpur 
Himachal Pradesh, India 177005