Platform: debian 10.9 "buster", openjdk-11 11.0.11+9-1~deb10u1, shiro 1.7.0
I would like shiro to redirect to a page of my own instead of the default 401 page. In the shiro.ini, I've tried unauthorizedUrl = /unauthorized and I've tried authc.unauthorizedUrl = /unauthorized and I've tried shiro.unauthorizedUrl = /unauthorized but so far without any success. What should the setting be? Thanks! Note: I've haven't actually created the /unauthorized page yet. I was trying to redirect to a non-existing page, get a 404 and then add the /unauthorized page. Here is my entire shiro.ini: [main] shiro.loginUrl = /login authc.loginUrl = /login user.loginUrl = /login shiro.unauthorizedUrl = /unauthorized [users] [urls] / = authc /api/login = anon /api/** = authc