[
https://issues.apache.org/jira/browse/SHIRO-359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262312#comment-13262312
]
HG edited comment on SHIRO-359 at 4/26/12 1:57 AM:
---------------------------------------------------
Please, find attached sample ShiroConfigModule and Realm. Also there is a
filter("/*").through(GuiceShiroFilter.class); call from within
GuiceServletConfig to get Shiro to act.
Maybe I am missing something. But I have spent whole day trying to get it
working, with no success.
Thanks
was (Author: husayt):
Sample ShiroConfigModule and Realm. Also there is a
filter("/*").through(GuiceShiroFilter.class); call from within
GuiceServletConfig
> Realm not initialised when bound in servlet mode with guice
> -----------------------------------------------------------
>
> Key: SHIRO-359
> URL: https://issues.apache.org/jira/browse/SHIRO-359
> Project: Shiro
> Issue Type: Bug
> Components: Realms
> Affects Versions: 1.2.0
> Reporter: HG
> Labels: OnInit
> Attachments: OxAuthenticatingRealm.java, ShiroConfigurationModule.java
>
>
> I have a SampleRealm class which extends TextConfigurationRealm.
> I bind it in configureShiroWeb() method of ShiroWebModule with
> bindRealm().to(SampleRealm .class).in(Singleton.class);
> My expectation is OnInit() to be called at some point.
> But that never happens.
> I guess that should happen through InitializableInjectionListener() with
> Guice, but doesn't get triggered.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira