diff --git a/examples/cordova/example-realm.json b/examples/cordova/example-realm.json index 615d2caac0..f0d6ad282f 100755 --- a/examples/cordova/example-realm.json +++ b/examples/cordova/example-realm.json @@ -35,12 +35,6 @@ } ] }, - "roleMappings": [ - { - "username": "user", - "roles": ["user"] - } - ], "scopeMappings": [ { "client": "cordova", @@ -52,17 +46,10 @@ "name": "cordova", "enabled": true, "publicClient": true, - "redirectUris": [] + "redirectUris": ["http://localhost"], + "webOrigins": ["localhost"] } ], - "applicationRoleMappings": { - "account": [ - { - "username": "user", - "roles": ["view-profile", "manage-account"] - } - ] - }, "applicationScopeMappings": { "account": [ { diff --git a/examples/cordova/www/index.html b/examples/cordova/www/index.html index 88852671f2..9983ee856a 100644 --- a/examples/cordova/www/index.html +++ b/examples/cordova/www/index.html @@ -28,7 +28,7 @@ } document.addEventListener("deviceready", function() { - keycloak.init({ onLoad: 'check-sso' }); + keycloak.init({ onLoad: 'check-sso' }).success(updateState); }, false);