Support prefixed rewrite rules
Change-Id: I47562cd536747534ace1dc6e0ccb61b341db1b7a
diff --git a/dev/js/src/vc/rewrite.js b/dev/js/src/vc/rewrite.js
index f0dfe34..bd29b9f 100644
--- a/dev/js/src/vc/rewrite.js
+++ b/dev/js/src/vc/rewrite.js
@@ -3,7 +3,7 @@
*/
define(['vc/jsonld', 'util'], function (jsonldClass) {
- var _validRewriteOpRE = new RegExp("^(?:injec|modifica)tion$");
+ var _validRewriteOpRE = new RegExp("^(operation:)?(?:injec|modifica)tion$");
return {
// Construction method
@@ -28,8 +28,8 @@
if (_validRewriteOpRE.test(op)) {
this._op = op;
}
- else {
- KorAP.log(814, "Unknown rewrite operation");
+ else {
+ KorAP.log(814, "Unknown rewrite operation");
return;
};
};
diff --git a/kalamar.conf b/kalamar.conf
index 99e16e2..912aca9 100644
--- a/kalamar.conf
+++ b/kalamar.conf
@@ -11,7 +11,7 @@
},
Kalamar => {
api => $ENV{'KALAMAR_API'} // $api,
- auth_support => 0
+ auth_support => 1
},
CHI => {
default => {