Ok, let me try this another way...perhaps my question was too long.

Trying to configure my web application to use a custom authorizing shiro realm. Any time I try to hit /reports/finance it directs me to the login.html file no problem, but that page doesn't seem to actually call back into my custom shiro auhorizing realm, which was created during server startup(This was an embedded instance of Jetty in our server project). What am I missing from web.xml or otherwise to make this happen?

*WEB/XML*
<filter>
<filter-name>ShiroFilter</filter-name>
<filter-class>
      org.apache.shiro.web.servlet.IniShiroFilter
</filter-class>
<init-param>
<param-name>config</param-name>
<param-value>
        [main]

        authc.loginUrl=../public/login.html

        [urls]
        /reports/finance= authc
        ../public/login.html = authc
</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>ShiroFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
......


*LOGIN.HTML*
<html>
<head/>

<body>
<form action="" id="loginForm" method="post">
   Username: <input type="text" name="username"/> <br/>
   Password: <input type="password" name="password"/>
<input type="submit" name="Login"/>
</form>
</body>
</html>

Reply via email to