Change adapters to use auth and token endpoints

This commit is contained in:
Stian Thorgersen committed 2015-03-16 09:23:12 +01:00
1 parent 3d05f31202
commit e2b02d414f
43 files changed
+192 -196

No files matched your search

@@ -76,7 +76,7 @@ public class AdminClient {
try {
HttpPost post = new HttpPost(KeycloakUriBuilder.fromUri(getBaseUrl(request) + "/auth")
.path(ServiceUrlConstants.TOKEN_SERVICE_DIRECT_GRANT_PATH).build("demo"));
.path(ServiceUrlConstants.TOKEN_PATH).build("demo"));
List <NameValuePair> formparams = new ArrayList <NameValuePair>();
formparams.add(new BasicNameValuePair("username", "admin"));
formparams.add(new BasicNameValuePair("password", "password"));