From f20e9b98f1a5d7012ebb493cb756a339bb69b6e1 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 10 Feb 2020 21:14:57 +0100 Subject: Make bookmark submission authenticated. Change-Id: I8bb41a106b7b0cc925beac968053f1d5811a652d --- src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java | 2 ++ 1 file changed, 2 insertions(+) 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, -- cgit v1.2.3