You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2021/09/15 15:28:13 UTC
[sling-whiteboard] branch master updated: Require Sling
authentication for jax-rs resources as well
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
The following commit(s) were added to refs/heads/master by this push:
new db02ae5 Require Sling authentication for jax-rs resources as well
db02ae5 is described below
commit db02ae541c3e28d75bc953164bf72b63b134acc6
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Wed Sep 15 17:27:57 2021 +0200
Require Sling authentication for jax-rs resources as well
---
aries-jax-rs-whiteboard/README.md | 2 ++
.../src/test/resources/features/feature-aries-jars-sample.json | 6 +++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/aries-jax-rs-whiteboard/README.md b/aries-jax-rs-whiteboard/README.md
index 84372b9..e8ad022 100644
--- a/aries-jax-rs-whiteboard/README.md
+++ b/aries-jax-rs-whiteboard/README.md
@@ -11,6 +11,8 @@ To start this, run
mvn clean install exec:java
+Adding the required MAVEN_OPTS for debugging if desired.
+
Then open http://localhost:8080 - which might require logging in
at http://localhost:8080/system/console first.
diff --git a/aries-jax-rs-whiteboard/src/test/resources/features/feature-aries-jars-sample.json b/aries-jax-rs-whiteboard/src/test/resources/features/feature-aries-jars-sample.json
index 6910373..0820bd3 100644
--- a/aries-jax-rs-whiteboard/src/test/resources/features/feature-aries-jars-sample.json
+++ b/aries-jax-rs-whiteboard/src/test/resources/features/feature-aries-jars-sample.json
@@ -29,8 +29,12 @@
"com.adobe.aem.guides:aem-guides-wknd.ui.content.sample:zip:0.0.4"
],
"configurations":{
+ "org.apache.sling.engine.impl.auth.SlingAuthenticator":{
+ "auth.annonymous":"false"
+ },
"org.apache.aries.jax.rs.whiteboard.default":{
- "default.application.base":"/api/jaxrs"
+ "default.application.base":"/api/jaxrs",
+ "osgi.http.whiteboard.context.select":"(osgi.http.whiteboard.context.name=org.apache.sling)"
},
"org.apache.sling.jcr.base.internal.LoginAdminWhitelist.fragment~installer-packages":{
"whitelist.bundles":[