added restful endpoint for jwt authentication

This commit is contained in:
Sebastian Sdorra
2015-03-15 11:40:29 +01:00
parent be385e4f2e
commit 325ca0c795
10 changed files with 352 additions and 347 deletions

View File

@@ -108,7 +108,7 @@ public final class IntegrationTestUtil
public static ClientResponse authenticate(Client client, String username,
String password)
{
WebResource wr = createResource(client, "authentication/login");
WebResource wr = client.resource(createResourceUrl("authentication/login").concat("?cookie=true"));
MultivaluedMap<String, String> formData = new MultivaluedMapImpl();
formData.add("username", username);

View File

@@ -290,7 +290,7 @@ public class DefaultRealmTest
/** Field description */
@Mock
private AuthorizationCollector collector;
private DefaultAuthorizationCollector collector;
/** Field description */
@Mock