get Keycloak rpt in javascript

207 Views Asked by At

I have tried so far to get the rpt token using the authz.js provided on the keycloak server. But I get an empty rpt back

const authorization = new KeycloakAuthorization(rootState.keycloak.keycloak);
      this._vm.$log.debug(
        "The auth object: ", authorization
      );

      authorization.entitlement('extranet').then(function (rpt) {
        console.log(
          "The rpt object entitlement: ", rpt
        );
    });

Has anyone ever gotten the rpt into vue/JS successfully and have an example?

0

There are 0 best solutions below