mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
added restful endpoint for jwt authentication
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -290,7 +290,7 @@ public class DefaultRealmTest
|
||||
|
||||
/** Field description */
|
||||
@Mock
|
||||
private AuthorizationCollector collector;
|
||||
private DefaultAuthorizationCollector collector;
|
||||
|
||||
/** Field description */
|
||||
@Mock
|
||||
|
||||
Reference in New Issue
Block a user