commit | f20e9b98f1a5d7012ebb493cb756a339bb69b6e1 | [log] [tgz] |
---|---|---|
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Mon Feb 10 21:14:57 2020 +0100 |
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Mon Feb 10 21:14:57 2020 +0100 |
tree | 4b6169b7c249ca37cddcc41787f14260a5dd148f | |
parent | 79f23b7e603cb649f395c852d656d791a2105c4e [diff] |
Make bookmark submission authenticated. Change-Id: I8bb41a106b7b0cc925beac968053f1d5811a652d
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.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 @@ @POST @Transactional + @Authenticated public Response postBookmark( @FormParam("uri") URI uri, @FormParam("title") @NotEmpty String title,