Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-4748

OAuth2ClientFilter fails if 'secretsProvider' points to a SecretStore

    Details

    • Epic Link:
    • Sprint:
      2020.09 - IG / Microservices
    • Story Points:
      1
    • Flagged:
      Impediment

      Description

      The sample discovery route fails to load when the OAuth2ClientFilter's "secretsProvider" attribute is pointing to a SecretStore.

      rg.forgerock.openig.heap.HeapException: Invalid object declaration
         at org.forgerock.openig.heap.HeapImpl.resolve(HeapImpl.java:512)
         at org.forgerock.openig.heap.HeapImpl.resolve(HeapImpl.java:504)
         at org.forgerock.openig.util.JsonValues.lambda$requiredHeapObject$7(JsonValues.java:391)
         at org.forgerock.json.JsonValue.as(JsonValue.java:530)
         at org.forgerock.openig.filter.oauth2.client.OAuth2ClientFilter$Heaplet.lambda$create$0(OAuth2ClientFilter.java:948)
         at org.forgerock.util.LambdaExceptionUtils.lambda$rethrowFunction$3(LambdaExceptionUtils.java:196)
         at java.base/java.util.Optional.map(Optional.java:265)
         at org.forgerock.openig.filter.oauth2.client.OAuth2ClientFilter$Heaplet.create(OAuth2ClientFilter.java:945)
         at org.forgerock.openig.heap.GenericHeaplet.create(GenericHeaplet.java:75)
         at org.forgerock.openig.heap.HeapImpl.extract(HeapImpl.java:485)
         at org.forgerock.openig.heap.HeapImpl.get(HeapImpl.java:432)
         at org.forgerock.openig.heap.HeapImpl.resolve0(HeapImpl.java:547)
         at org.forgerock.openig.heap.HeapImpl.resolve(HeapImpl.java:510)
         at org.forgerock.openig.heap.HeapImpl.resolve(HeapImpl.java:504)
         at org.forgerock.openig.util.JsonValues.lambda$requiredHeapObject$7(JsonValues.java:391)
         at org.forgerock.json.JsonValue.as(JsonValue.java:530)
         at org.forgerock.json.JsonValueFunctions.lambda$listOf$10(JsonValueFunctions.java:268)
         at org.forgerock.json.JsonValue.as(JsonValue.java:530)
         at org.forgerock.openig.filter.ChainHandlerHeaplet.create(ChainHandlerHeaplet.java:54)
         at org.forgerock.openig.heap.GenericHeaplet.create(GenericHeaplet.java:75)
         at org.forgerock.openig.heap.HeapImpl.extract(HeapImpl.java:485)
         at org.forgerock.openig.heap.HeapImpl.get(HeapImpl.java:432)
         at org.forgerock.openig.heap.HeapImpl.resolve0(HeapImpl.java:547)
         at org.forgerock.openig.heap.HeapImpl.resolve(HeapImpl.java:510)
         at org.forgerock.openig.heap.HeapImpl.resolve(HeapImpl.java:504)
         at org.forgerock.openig.heap.HeapImpl.getHandler(HeapImpl.java:685)
         at org.forgerock.openig.handler.router.RouteBuilder.setupRouteHandler(RouteBuilder.java:274)
         at org.forgerock.openig.handler.router.RouteBuilder.build(RouteBuilder.java:192)
         at org.forgerock.openig.handler.router.RouterHandler.load(RouterHandler.java:305)
         ... 58 common frames omitted
      Caused by: java.lang.ClassCastException: Cannot cast org.forgerock.secrets.keystore.KeyStoreSecretStore to org.forgerock.secrets.SecretsProvider
         at java.base/java.lang.Class.cast(Class.java:3605)
         at org.forgerock.openig.heap.HeapImpl.get(HeapImpl.java:437)
         at org.forgerock.openig.heap.HeapImpl.resolve0(HeapImpl.java:528)
         at org.forgerock.openig.heap.HeapImpl.resolve(HeapImpl.java:510)
         ... 86 common frames omitted

        Attachments

          Activity

            People

            • Assignee:
              guillaume.sauthier Guillaume Sauthier
              Reporter:
              guillaume.sauthier Guillaume Sauthier
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: