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

Provide way to use TextConfigurationRealm without extending it (i.e. an init method which calls processDefinitions)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.1.0
    • None
    • None
    • None

    Description

      I was trying to use the TextConfigurationRealm inside Spring for tests with the following configuration:

      <spring:bean id="myRealm" class="org.apache.shiro.realm.text.TextConfigurationRealm">
      <spring:property name="userDefinitions">
      <spring:value>
      test=test
      </spring:value>
      </spring:property>
      </spring:bean>

      However, there doesn't seem to be a way to call out to processDefinitions unless you extend this class. IMO there should be a default onInit method calls processDefinitions. Otherwise this class should be marked as abstract because it's currently useless unless you extend it.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dandiep Daniel Diephouse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: