This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 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: 41060
    
  43
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache Shiro deny access
 
Similar Threads
Creating new roles in RBAC
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
Java based security framework for a category scoped permission design