Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-361

Wrong validation when configuring credentials using multiple stores for a single identity configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • PLINK_2.6.0.Beta3
    • PLINK_2.6.0.Beta2
    • IDM
    • None

      The following configuration should be valid and can not throw any validation exception:

      @Test
      public void testMultipleIdentityStoreWithValidCredentialSupport() {
              IdentityConfigurationBuilder builder = new IdentityConfigurationBuilder();
      
              builder
                  .named("default")
                      .stores()
                          .file()
                              .supportCredentials(true)
                              .supportType(Partition.class)
                              .supportType(IdentityType.class)
                          .jpa()
                              .supportCredentials(false)
                              .supportType(Relationship.class);
      
              new DefaultPartitionManager(builder.buildAll());
      }
      

      Currently, a validation is thrown if the first store is supporting attributes and the second not. However, if you invert the order of the stores the configuration is valid.

            psilva@redhat.com Pedro Igor Craveiro
            psilva@redhat.com Pedro Igor Craveiro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: