Fix cordova example

This commit is contained in:
Stian Thorgersen 2014-09-25 19:00:13 +02:00
parent f8b4a91fa8
commit 8006ea073b
2 changed files with 3 additions and 16 deletions

View file

@ -35,12 +35,6 @@
} }
] ]
}, },
"roleMappings": [
{
"username": "user",
"roles": ["user"]
}
],
"scopeMappings": [ "scopeMappings": [
{ {
"client": "cordova", "client": "cordova",
@ -52,17 +46,10 @@
"name": "cordova", "name": "cordova",
"enabled": true, "enabled": true,
"publicClient": true, "publicClient": true,
"redirectUris": [] "redirectUris": ["http://localhost"],
"webOrigins": ["localhost"]
} }
], ],
"applicationRoleMappings": {
"account": [
{
"username": "user",
"roles": ["view-profile", "manage-account"]
}
]
},
"applicationScopeMappings": { "applicationScopeMappings": {
"account": [ "account": [
{ {

View file

@ -28,7 +28,7 @@
} }
document.addEventListener("deviceready", function() { document.addEventListener("deviceready", function() {
keycloak.init({ onLoad: 'check-sso' }); keycloak.init({ onLoad: 'check-sso' }).success(updateState);
}, false); }, false);
</script> </script>
</head> </head>