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?