Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2287

OidcClientConfigResolver is called multiple times per request

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Hide

      Here is a simple demo project with a custom resolver that prints a log message every time it is called: https://github.com/gtudan/wildfly-oidc-multitenancy

      Show
      Here is a simple demo project with a custom resolver that prints a log message every time it is called: https://github.com/gtudan/wildfly-oidc-multitenancy

      While creating an OidcClientConfigResolver for multi tenancy I noticed that the resolver gets called three times for every request:

      18:40:47,600 INFO  [com.example.oidcdemo.OidcConfigResolver] (default task-1) Resolving config for request http://localhost:8080/keycloak-demo-1.0-SNAPSHOT/
      18:40:47,606 INFO  [com.example.oidcdemo.OidcConfigResolver] (default task-1) Resolving config for request http://localhost:8080/keycloak-demo-1.0-SNAPSHOT/
      18:40:47,611 INFO  [com.example.oidcdemo.OidcConfigResolver] (default task-1) Resolving config for request http://localhost:8080/keycloak-demo-1.0-SNAPSHOT/
      18:40:47,624 INFO  [org.wildfly.security.http.oidc] (default task-1) ELY23004: Loaded OpenID provider metadata from 'http://localhost:8180/auth/realms/myRealm/.well-known/openid-configuration'
      

        1. stack1.txt
          4 kB
          Gregor Tudan
        2. stack2.txt
          4 kB
          Gregor Tudan
        3. stack3.txt
          4 kB
          Gregor Tudan

              Unassigned Unassigned
              gtudan Gregor Tudan (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: