Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-5152

AMAuthLevelManager miscalculates auth level

    Details

    • Sprint:
      AM Sustaining Sprint 35, AM Sustaining Sprint 36, AM Sustaining Sprint 37, AM Sustaining Sprint 38, AM Sustaining Sprint 39, AM Sustaining Sprint 40
    • Story Points:
      2
    • Support Ticket IDs:

      Description

      AMAuthLevelManager calls AMAuthConfigUtils#getAuthLevelAttribute which assumes each module's auth level is registered as "iplanet-am-auth-<module>-auth-level".

      Unfortunately, Adaptive and Device Print has auth level prefix as "openam-auth" so AMAuthLevelManager will fail to find auth level and this eventually leads to wrong auth level.

          public static String getAuthLevelAttribute(Map attrs, String module) {
              // auth level attribute must follow this naming convention
              String attrName =  ISAuthConstants.AUTH_ATTR_PREFIX + 
                  module.toLowerCase() + "-auth-level";
              if (attrs.get(attrName) == null) {
                  attrName = ISAuthConstants.AUTH_ATTR_PREFIX_NEW + module + 
                  "AuthLevel";
              }
              return attrName;
          }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sachiko Sachiko Wallace
                Reporter:
                sachiko Sachiko Wallace
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: