Merge pull request #708 from stianst/master

Fix cordova example
This commit is contained in:
Stian Thorgersen 2014-09-25 19:00:45 +02:00
commit ca4ed6d528
2 changed files with 3 additions and 16 deletions

View file

@ -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": [
{

View file

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