File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Apache Shiro deny access " Watch "Apache Shiro deny access " New topic
Author

Apache Shiro deny access

Amr k. Saleh
Ranch Hand

Joined: Aug 23, 2010
Posts: 37
Dears,

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
Marshal

Joined: Mar 22, 2005
Posts: 39544
    
  27
Assuming these are JSP pages, you can use appropriate tags of Shiro's tag library: http://shiro.apache.org/web.html#Web-taglibrary

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


Ping & DNS - updated with new look and Ping home screen widget
Amr k. Saleh
Ranch Hand

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

so, i have to do it manually, nothing to do in ini file
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache Shiro deny access
 
Similar Threads
Grails for prototyping and enterprise applications
What is the best way to keep user session id or authentication data
ItemXMLHttp is working with plain HTML page but not with JSP
Creating new roles in RBAC
Java based security framework for a category scoped permission design