Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-359

Realm not initialised when bound in servlet mode with guice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.0
    • None
    • Realms

    Description

      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.

      Attachments

        Activity

          People

            deraj123 Jared Bunting
            husayt HG
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: