apiKey is in the query params not in the path (Athou/commafeed-newsplus#7)

This commit is contained in:
Athou
2014-08-16 12:29:17 +02:00
parent 8fee73f1d1
commit 9cf7b80110

View File

@@ -91,7 +91,7 @@ public class SecurityCheckProvider implements InjectableProvider<SecurityCheck,
}
private Optional<User> apiKeyLogin(HttpContext c) {
String apiKey = c.getUriInfo().getPathParameters().getFirst("apiKey");
String apiKey = c.getUriInfo().getQueryParameters().getFirst("apiKey");
if (apiKey != null && apiKeyAllowed) {
return userService.login(apiKey);
}