[KEYCLOAK-8849] - Fixing request entitlements call

This commit is contained in:
Pedro Igor 2019-01-15 11:08:18 -02:00
parent 31e8e73e48
commit e01c9ddd60

View file

@ -159,7 +159,7 @@ public class PhotozClientAuthzTestApp extends AbstractPageWithInjectedUrl {
public void requestEntitlements(JavascriptStateValidator validator) {
testExecutor.executeAsyncScript("var callback = arguments[arguments.length - 1];" +
"window.authorization.entitlement('photoz-restful-api').then(function (rpt) {" +
"window.authorization.entitlement('photoz-restful-api', {}).then(function (rpt) {" +
" callback(JSON.stringify(jwt_decode(rpt), null, ' '));" +
"});", validator);
}