Details

    • Steps to Reproduce:
      1. Create new TypeScript project
      2. Install keycloak-connect from source
      3. Try out the snippets from above
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      When using the workaround mentioned in KEYCLOAK-12770 to obtain the typings, the resulting type definitions are incomplete / wrong.

      So far I found the following broken definitions:

      // both constructor signatures aren't working
      // since the only allowed form is
      // new Keycloak(options: Keycloak.KeycloakOptions, config: Keycloak.KeycloakConfig)
      // should be:
      // new Keycloak(options: Keycloak.KeycloakOptions, config?: Keycloak.KeycloakConfig | string)
      new Keycloak({ store: memoryStore });
      new Keycloak({ store: memoryStore }, '/path/to/keycloak.json');
      
      
      const keycloak = new KeyCloak(...);
      // not defined
      keycloak.checkSso()
      // not defined
      keycloak.enforcer()
      // not defined
      keycloak.getAccount()
      // not defined
      keycloak.checkPermissions()
      // not defined
      keycloak.getConfig()
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  abstractj Bruno Oliveira da Silva
                  Reporter:
                  fatalmerlin Merlin Brandes
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: