You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by Emiliano Jankowski <em...@yahoo.com.ar> on 2009/10/04 11:56:19 UTC
Extrange redirect
Hi there, I'm having some strange redirect after loggin, for instance if I want put
http://localhost:8080/inventario/home.faces, it redirects me to login page, and after a successful authentication It redirects me to
http://localhost:8080/inventario/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/skinning.js.faces
This is my shiro configuration
[main]
[filters]
shiro.loginUrl = /login.faces
authc.successUrl = /home.faces
[urls]
/login.faces = authc
/resources/assets/** = anon
/** = authc
Some one know what can be this?
Thanks a lot!
Jankowski Emiliano
Lic. en Sistemas
ejankowski.blogspot.com
provincianito.blogspot.com
Yahoo! Cocina
Encontra las mejores recetas con Yahoo! Cocina.
http://ar.mujer.yahoo.com/cocina/
Re: Extrange redirect
Posted by Kalle Korhonen <ka...@gmail.com>.
I'm pretty sure Les has the right idea of what's wrong. Is the
pathmatcher appending the context path (didn't check)? Emiliano, you
might also want to try with:
/inventario/a4j/** = anon
Kalle
On Wed, Oct 7, 2009 at 8:17 AM, Emiliano Jankowski
<em...@yahoo.com.ar> wrote:
> Hi Les, I tested that, but with the same results, it is not redirecting to home.faces, it goes to a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/skinning.js.faces
>
> Any other idea?
>
> Thanks!
>
>
>
>
>
> ----- Mensaje original ----
> De: Les Hazlewood <lh...@apache.org>
> Para: shiro-user@incubator.apache.org
> Enviado: lunes 5 de octubre de 2009, 15:32:38
> Asunto: Re: Extrange redirect
>
> Hi Emiliano,
>
> '/login.faces' appears to reference resources (javascript, CSS, etc)
> from different URLs. Those URLs need to be accessible too ('anon').
> Also, I would make '/login.faces' anonymous - you typically don't need
> to restrict your login page.
>
> For example:
>
> [urls]
> /login.faces = anon
> # I don't know if this can be anonymous based on your security requirements
> # but it looks like it might be OK:
> /a4j/** = anon
> /resources/assets/** = anon
> /** = authc
>
> If that doesn't work, try to turn on Shiro's debug and trace levels to
> see which request is being saved and when.
>
> I hope that helps!
>
> Regards,
>
> Les
>
> On Sun, Oct 4, 2009 at 5:56 AM, Emiliano Jankowski
> <em...@yahoo.com.ar> wrote:
>> Hi there, I'm having some strange redirect after loggin, for instance if I want put
>>
>> http://localhost:8080/inventario/home.faces, it redirects me to login page, and after a successful authentication It redirects me to
>>
>> http://localhost:8080/inventario/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/skinning.js.faces
>>
>> This is my shiro configuration
>>
>> [main]
>>
>>
>> [filters]
>>
>> shiro.loginUrl = /login.faces
>> authc.successUrl = /home.faces
>>
>> [urls]
>>
>> /login.faces = authc
>> /resources/assets/** = anon
>> /** = authc
>>
>>
>> Some one know what can be this?
>>
>> Thanks a lot!
>>
>>
>>
>>
>> Jankowski Emiliano
>> Lic. en Sistemas
>> ejankowski.blogspot.com
>> provincianito.blogspot.com
>>
>>
>>
>> Yahoo! Cocina
>>
>> Encontra las mejores recetas con Yahoo! Cocina.
>>
>>
>> http://ar.mujer.yahoo.com/cocina/
>>
>
>
>
> Yahoo! Cocina
>
> Encontra las mejores recetas con Yahoo! Cocina.
>
>
> http://ar.mujer.yahoo.com/cocina/
>
Re: Extrange redirect
Posted by Les Hazlewood <lh...@apache.org>.
Hi Emiliano,
I'm not sure why you're experiencing this problem - I have very little
experience w/ JSF. You might want to download the Shiro sources (mvn
dependency:sources -DincludeArtifactIds=shiro-core,shiro-web) and then
fire up a debugger and set some break points.
The WebUtils.saveRequest and getSavedRequest methods would be useful
for setting breakpoints.
HTH,
Les
On Wed, Oct 7, 2009 at 11:17 AM, Emiliano Jankowski
<em...@yahoo.com.ar> wrote:
> Hi Les, I tested that, but with the same results, it is not redirecting to home.faces, it goes to a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/skinning.js.faces
>
> Any other idea?
>
> Thanks!
>
>
>
>
>
> ----- Mensaje original ----
> De: Les Hazlewood <lh...@apache.org>
> Para: shiro-user@incubator.apache.org
> Enviado: lunes 5 de octubre de 2009, 15:32:38
> Asunto: Re: Extrange redirect
>
> Hi Emiliano,
>
> '/login.faces' appears to reference resources (javascript, CSS, etc)
> from different URLs. Those URLs need to be accessible too ('anon').
> Also, I would make '/login.faces' anonymous - you typically don't need
> to restrict your login page.
>
> For example:
>
> [urls]
> /login.faces = anon
> # I don't know if this can be anonymous based on your security requirements
> # but it looks like it might be OK:
> /a4j/** = anon
> /resources/assets/** = anon
> /** = authc
>
> If that doesn't work, try to turn on Shiro's debug and trace levels to
> see which request is being saved and when.
>
> I hope that helps!
>
> Regards,
>
> Les
>
> On Sun, Oct 4, 2009 at 5:56 AM, Emiliano Jankowski
> <em...@yahoo.com.ar> wrote:
>> Hi there, I'm having some strange redirect after loggin, for instance if I want put
>>
>> http://localhost:8080/inventario/home.faces, it redirects me to login page, and after a successful authentication It redirects me to
>>
>> http://localhost:8080/inventario/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/skinning.js.faces
>>
>> This is my shiro configuration
>>
>> [main]
>>
>>
>> [filters]
>>
>> shiro.loginUrl = /login.faces
>> authc.successUrl = /home.faces
>>
>> [urls]
>>
>> /login.faces = authc
>> /resources/assets/** = anon
>> /** = authc
>>
>>
>> Some one know what can be this?
>>
>> Thanks a lot!
>>
>>
>>
>>
>> Jankowski Emiliano
>> Lic. en Sistemas
>> ejankowski.blogspot.com
>> provincianito.blogspot.com
>>
>>
>>
>> Yahoo! Cocina
>>
>> Encontra las mejores recetas con Yahoo! Cocina.
>>
>>
>> http://ar.mujer.yahoo.com/cocina/
>>
>
>
>
> Yahoo! Cocina
>
> Encontra las mejores recetas con Yahoo! Cocina.
>
>
> http://ar.mujer.yahoo.com/cocina/
>
Re: Extrange redirect
Posted by Emiliano Jankowski <em...@yahoo.com.ar>.
Hi Les, I tested that, but with the same results, it is not redirecting to home.faces, it goes to a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/skinning.js.faces
Any other idea?
Thanks!
----- Mensaje original ----
De: Les Hazlewood <lh...@apache.org>
Para: shiro-user@incubator.apache.org
Enviado: lunes 5 de octubre de 2009, 15:32:38
Asunto: Re: Extrange redirect
Hi Emiliano,
'/login.faces' appears to reference resources (javascript, CSS, etc)
from different URLs. Those URLs need to be accessible too ('anon').
Also, I would make '/login.faces' anonymous - you typically don't need
to restrict your login page.
For example:
[urls]
/login.faces = anon
# I don't know if this can be anonymous based on your security requirements
# but it looks like it might be OK:
/a4j/** = anon
/resources/assets/** = anon
/** = authc
If that doesn't work, try to turn on Shiro's debug and trace levels to
see which request is being saved and when.
I hope that helps!
Regards,
Les
On Sun, Oct 4, 2009 at 5:56 AM, Emiliano Jankowski
<em...@yahoo.com.ar> wrote:
> Hi there, I'm having some strange redirect after loggin, for instance if I want put
>
> http://localhost:8080/inventario/home.faces, it redirects me to login page, and after a successful authentication It redirects me to
>
> http://localhost:8080/inventario/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/skinning.js.faces
>
> This is my shiro configuration
>
> [main]
>
>
> [filters]
>
> shiro.loginUrl = /login.faces
> authc.successUrl = /home.faces
>
> [urls]
>
> /login.faces = authc
> /resources/assets/** = anon
> /** = authc
>
>
> Some one know what can be this?
>
> Thanks a lot!
>
>
>
>
> Jankowski Emiliano
> Lic. en Sistemas
> ejankowski.blogspot.com
> provincianito.blogspot.com
>
>
>
> Yahoo! Cocina
>
> Encontra las mejores recetas con Yahoo! Cocina.
>
>
> http://ar.mujer.yahoo.com/cocina/
>
Yahoo! Cocina
Encontra las mejores recetas con Yahoo! Cocina.
http://ar.mujer.yahoo.com/cocina/
Re: Extrange redirect
Posted by Les Hazlewood <lh...@apache.org>.
Hi Emiliano,
'/login.faces' appears to reference resources (javascript, CSS, etc)
from different URLs. Those URLs need to be accessible too ('anon').
Also, I would make '/login.faces' anonymous - you typically don't need
to restrict your login page.
For example:
[urls]
/login.faces = anon
# I don't know if this can be anonymous based on your security requirements
# but it looks like it might be OK:
/a4j/** = anon
/resources/assets/** = anon
/** = authc
If that doesn't work, try to turn on Shiro's debug and trace levels to
see which request is being saved and when.
I hope that helps!
Regards,
Les
On Sun, Oct 4, 2009 at 5:56 AM, Emiliano Jankowski
<em...@yahoo.com.ar> wrote:
> Hi there, I'm having some strange redirect after loggin, for instance if I want put
>
> http://localhost:8080/inventario/home.faces, it redirects me to login page, and after a successful authentication It redirects me to
>
> http://localhost:8080/inventario/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/skinning.js.faces
>
> This is my shiro configuration
>
> [main]
>
>
> [filters]
>
> shiro.loginUrl = /login.faces
> authc.successUrl = /home.faces
>
> [urls]
>
> /login.faces = authc
> /resources/assets/** = anon
> /** = authc
>
>
> Some one know what can be this?
>
> Thanks a lot!
>
>
>
>
> Jankowski Emiliano
> Lic. en Sistemas
> ejankowski.blogspot.com
> provincianito.blogspot.com
>
>
>
> Yahoo! Cocina
>
> Encontra las mejores recetas con Yahoo! Cocina.
>
>
> http://ar.mujer.yahoo.com/cocina/
>