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
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: 41
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: 41114
    
  45
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 - my free Android networking tools app
Amr k. Saleh
Ranch Hand

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

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