Removed '*' role

This commit is contained in:
Stian Thorgersen committed 2013-11-15 16:38:44 +00:00
1 parent a923f44619
commit 45424e5eba
21 files changed
+56 -77

No files matched your search

@@ -145,6 +145,10 @@ public class OAuthClient {
}
}
public String getClientId() {
return clientId;
}
public String getCurrentRequest() {
return driver.getCurrentUrl().substring(0, driver.getCurrentUrl().indexOf('?'));
}
@@ -73,6 +73,9 @@ public class AccessTokenTest {
Assert.assertEquals(1, token.getRealmAccess().getRoles().size());
Assert.assertTrue(token.getRealmAccess().isUserInRole("user"));
Assert.assertEquals(1, token.getResourceAccess(oauth.getClientId()).getRoles().size());
Assert.assertTrue(token.getResourceAccess(oauth.getClientId()).isUserInRole("customer-user"));
}
}
@@ -62,6 +62,10 @@
{
"username": "third-party",
"roles": ["user"]
},
{
"username": "test-app",
"roles": ["user"]
}
],
"applications": [
@@ -69,7 +73,6 @@
"name": "test-app",
"enabled": true,
"adminUrl": "http://localhost:8081/app/logout",
"useRealmMappings": true,
"credentials": [
{
"type": "password",