Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Shiro deny access

 
Amr k. Saleh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Amr k. Saleh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Ulf Dittmer.

so, i have to do it manually, nothing to do in ini file
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic