Basic auth redirect to error page

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Basic auth redirect to error page

armandoxxx
Hey

is it possible to redirect to error page if I use authcBasic filter ?

I cannot find it in code ...
just to make sure I did not miss anything before I implement custom logic.

Regards

Armando



--
Sent from: http://shiro-user.582556.n2.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Basic auth redirect to error page

fpapon
Hi,

You can use the setLoginUrl to redirect to an url:

https://shiro.apache.org/static/1.5.2/apidocs/org/apache/shiro/web/filter/authc/FormAuthenticationFilter.html#setLoginUrl(java.lang.String)

regards,
François
[hidden email]
Le 31/03/2020 à 10:07, armandoxxx a écrit :
Hey 

is it possible to redirect to error page if I use authcBasic filter ? 

I cannot find it in code ... 
just to make sure I did not miss anything before I implement custom logic. 

Regards

Armando



--
Sent from: http://shiro-user.582556.n2.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Basic auth redirect to error page

armandoxxx
will try ;) thanks for the idea



--
Sent from: http://shiro-user.582556.n2.nabble.com/