mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
apiKey is in the query params not in the path (Athou/commafeed-newsplus#7)
This commit is contained in:
@@ -91,7 +91,7 @@ public class SecurityCheckProvider implements InjectableProvider<SecurityCheck,
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Optional<User> apiKeyLogin(HttpContext c) {
|
private Optional<User> apiKeyLogin(HttpContext c) {
|
||||||
String apiKey = c.getUriInfo().getPathParameters().getFirst("apiKey");
|
String apiKey = c.getUriInfo().getQueryParameters().getFirst("apiKey");
|
||||||
if (apiKey != null && apiKeyAllowed) {
|
if (apiKey != null && apiKeyAllowed) {
|
||||||
return userService.login(apiKey);
|
return userService.login(apiKey);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user