Uploaded image for project: 'aaa'
  1. aaa
  2. AAA-103

idpmapping will failed for the case sensitivity

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 6082

    Description

      In the file of SssdClaimAuth.java L149-156

      if (mapped.containsKey("Roles")) {
      @SuppressWarnings("unchecked")
      List<String> roles = (List<String>) mapped.get("roles");
      for (String role : roles)

      { cb.addRole(role); }

      }
      Claim claim = cb.build();

      The code will checked key "Roles" where the word begin with upper letter. If mapping_rule_file contains "Roles", then will get the value according the key "roles" where the word begin with lower letter, but it will failed.

      And if the mapping_rule_file does not contains key "Role" where the word begin with upper letter, then the cb will not have the value of role.

      when claim_builder begins to build claim, the missing of role will cause a exception and fail.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            huangqingxin@ruijie.com.cn huangqingxin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: