summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-02-10 21:14:57 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-02-10 21:14:57 +0100
commitf20e9b98f1a5d7012ebb493cb756a339bb69b6e1 (patch)
tree4b6169b7c249ca37cddcc41787f14260a5dd148f /src
parent79f23b7e603cb649f395c852d656d791a2105c4e (diff)
Make bookmark submission authenticated.
Change-Id: I8bb41a106b7b0cc925beac968053f1d5811a652d
Diffstat (limited to 'src')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java
index 463551c..73396d7 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java
@@ -9,6 +9,7 @@ import io.quarkus.qute.Template;
import io.quarkus.qute.TemplateExtension;
import io.quarkus.qute.TemplateInstance;
import io.quarkus.qute.api.ResourcePath;
+import io.quarkus.security.Authenticated;
import io.quarkus.security.identity.SecurityIdentity;
import java.net.URI;
import java.net.URISyntaxException;
@@ -81,6 +82,7 @@ public class BookmarkResource {
@POST
@Transactional
+ @Authenticated
public Response postBookmark(
@FormParam("uri") URI uri,
@FormParam("title") @NotEmpty String title,