From 8006ea073bd544c9a3c1e266202b5a41c56f2f08 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Thu, 25 Sep 2014 19:00:13 +0200 Subject: [PATCH] Fix cordova example --- examples/cordova/example-realm.json | 17 ++--------------- examples/cordova/www/index.html | 2 +- 2 files changed, 3 insertions(+), 16 deletions(-) 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);