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

CasRealm not cooperating with other realms: Expects all principals to be originating from itself

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.0, 1.2.1, 1.2.2
    • None
    • Realms
    • None

    Description

      in CasRealm.doGetAuthorizationInfo(...):

      // retrieve user information
      SimplePrincipalCollection principalCollection = (SimplePrincipalCollection) principals;
      List<Object> listPrincipals = principalCollection.asList();
      Map<String, String> attributes = (Map<String, String>) listPrincipals.get(1);

      But if I use multiple realms of course the principal could stem from one of the other realms and therefore of course be without parameters and causes an IndexOutOfBoundsException in line 182:
      Map<String, String> attributes = (Map<String, String>) listPrincipals.get(1);

      Workaround: Override doGetAuthorizationInfo in own subclass and fix.

      Attachments

        Activity

          People

            Unassigned Unassigned
            georg.koester@gmail.com Georg Koester
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: