Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9273037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:00:37+00:00 2026-06-18T16:00:37+00:00

I want to use Apache Shiro in my JSF-Application to perform URL-based authorization checks,

  • 0

I want to use Apache Shiro in my JSF-Application to perform URL-based authorization checks, configuration done in shiro.ini As I see in the Shiro-documentation there is a way to use a “perms”-filter

/remoting/rpc/** = authc, perms["remote:invoke"]

In my scenario I want this functionality, but on entity-level1, where the entity-Id is in the http-request

# "Open settings for user with id=123":
# /user/settings.xhtml?user_id=123
/user/settings.xhtml = perms["user:update:XXX"]

So, how do I do this with Shiro? How to I tell the perms-filter to check for http-params? Or is this supposed to be done in my Realm-Implemenation, concrete by calling FacesContext?

1 This can be done at least programmatically:

SecurityUtils.getSubject().isPermitted("printer:query:lp7200")

https://shiro.apache.org/permissions.html

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:00:38+00:00Added an answer on June 18, 2026 at 4:00 pm

    It is possible to do this by implementing and using own “org.apache.shiro.web.filter.AccessControlFilter” subclasses in the software. This own classes can be declared in the shiro.ini:

    [main]
    user = filter.FooFilter
    

    The AccessControlFilter-class provides an “isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue)”-method, which can be overridden to use “request.getParameterMap()” for getting the HTTP-GET-parameters.

    As an example, you could have a look at my project tiramisu (quite outdated).
    See CompanyManagerPermissionsFilter (which extends CompanyScopedPermissionsFilter, which extends DomainPermissionsFilter), included in WEB-INF/shiro.ini.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use apache shiro to secure my JSF application that I have
I want to know if I can use Apache Shiro to secure the business
I want to use Apache Shiro and MySQL for my Realm. What tables and
I use Apache MyFaces 2 on WebSphere Application Server 8. I want to implement
I use Apache Myfaces 2.2 on WebSphere Application Server. I have a JSF page,
I want to use the apache commons configuration jars in my Maven project. When
So I use apache HttpComponents to handle http request in java. Now I want
There are many how-to's for people who want to use Rails with Apache and
I want to use these two classes from lucene - import org.apache.lucene.analysis.snowball.*; import org.apache.lucene.analysis.PorterStemmer;
I want to use log4j in my jsp s and servlets. I read apache

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.