Fix cordova example
This commit is contained in:
parent
f8b4a91fa8
commit
8006ea073b
2 changed files with 3 additions and 16 deletions
|
@ -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": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue