File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Apache Shiro deny access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Apache Shiro deny access " Watch "Apache Shiro deny access " New topic

Apache Shiro deny access

Amr k. Saleh
Ranch Hand

Joined: Aug 23, 2010
Posts: 42

how can i deny access in apache shiro ? for example, i don't want logged in users to access login and register pages
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Assuming these are JSP pages, you can use appropriate tags of Shiro's tag library:

Or perform the check in the Java controller code that forwards to those pages, and take appropriate action there.
Amr k. Saleh
Ranch Hand

Joined: Aug 23, 2010
Posts: 42
thanks Ulf Dittmer.

so, i have to do it manually, nothing to do in ini file
I agree. Here's the link:
subject: Apache Shiro deny access
It's not a secret anymore!