I'm not sure I understand your question, but you could implement your own
FilterChainManager if the current one does not work for your use-case.
On Sat, Oct 15, 2016 at 2:28 AM, Hitesh wrote:
> I have tried the suggested solution, but it helped me little. I was able to
> add a role to a particul
I have tried the suggested solution, but it helped me little. I was able to
add a role to a particular URL by writing -
manager.addToChain("/admin/control/nistcontrolfamily.zul", "roles",
"Admin");
But, it is of little help as from User Interface, when I save a role, I have
list of URLs, so some
Okay, let me try this. I will get back to you if I face any issue
--
View this message in context:
http://shiro-developer.582600.n2.nabble.com/Facing-issue-in-reflecting-URL-ROLE-changes-dynamically-tp7579469p7579483.html
Sent from the Shiro Developer mailing list archive at Nabble.com.
This is mostly pseudo code, but something like:
ApplicationContext appContext = SpringUtil.getApplicationContext();
AbstractShiroFilter filter = appContext.getBean(AbstractShiroFilter.class); //
or possibly appContext.getBean(ShiroFilterFactoryBean.class).getObject()
PathMatchingFilterChainResolv
First of all, I am using the ShiroFilterFactoryBean only. Here is the xml
configuration of that -
/
/
Now, when I save URL = Role Mapping from UI, I get reference of this bean
from application context and then invoke setFilterChainDefinition() method
o
Lets back up, so I can get a bit more context.
In your original post, you mentioned you were calling '
setFilterChainDefinition()'
Are you injecting the 'ShiroFilterFactoryBean' into a class you manage and
then calling the method ?
On Tue, Oct 11, 2016 at 11:22 AM, Hitesh wrote:
> I am configur
I am configuring the beans through xml. I am not sure how I can inject the
resolver in ShiroFilterFactoryBean.
If you're saying I should I inject it in my subclassed bean, then please
guide me where I can do that?
And when my filterChainDefinition changes, what should I do? Should I call
the se
If you are using Spring, you should be able to inject (@Autowire) one or
use @Bean on your create method
Maybe not helpful for you, but here is a guice example:
https://github.com/sonatype/nexus-public/blob/master/components/nexus-security/src/main/java/org/sonatype/nexus/security/WebSecurityModul
I have tried to understand your approach and worked towards the solution, but
not able to achieve the results.
I have created a subclass as you said and tried to reinitialize
FilterChainManager, clearing all its filter, but that is not helping.
Could you please tell me how exactly I can return a
At runtime you would need to add them directly to the FilterChainManager
(assuming you are using the default FitlerChainResolver
(PathMatchingFilterChainResolver)
Take a look at, ShiroFilterFactoryBean.createInstance(). You may want to
subclass and return a managed bean from 'createFilterChainMan
10 matches
Mail list logo