From 0924304cf55a8819f819c12d1aafdb788cef0eb4 Mon Sep 17 00:00:00 2001 From: Jared Whiklo Date: Wed, 3 May 2017 11:51:22 -0500 Subject: [PATCH] Add attribute to allow anonymous GET requests through Syn (#9) * Add attribute to allow anonymous GET requests through Syn * Additional tests * Also check HEAD Clean up allow anonymous checks --- .gitignore | 1 + conf/syn-settings.example.xml | 3 + .../syn/settings/SettingsParser.java | 63 +-- .../java/ca/islandora/syn/settings/Site.java | 19 + .../java/ca/islandora/syn/valve/SynValve.java | 63 ++- .../SettingsParserAlgorithmsTest.java | 82 +++- .../settings/SettingsParserAnonymousTest.java | 76 ++++ .../settings/SettingsParserDigestTest.java | 55 ++- .../ca/islandora/syn/settings/SiteTest.java | 15 +- .../ca/islandora/syn/valves/SynValveTest.java | 366 ++++++++++++++++-- 10 files changed, 676 insertions(+), 67 deletions(-) create mode 100644 src/test/java/ca/islandora/syn/settings/SettingsParserAnonymousTest.java diff --git a/.gitignore b/.gitignore index 69857f2..f44f385 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /build *.ipr *.iws +/bin/ diff --git a/conf/syn-settings.example.xml b/conf/syn-settings.example.xml index 191ea2a..3cbd328 100644 --- a/conf/syn-settings.example.xml +++ b/conf/syn-settings.example.xml @@ -16,6 +16,9 @@ my secret key + + +