aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/webapp/WEB-INF/shiro.ini
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/webapp/WEB-INF/shiro.ini')
-rw-r--r--src/main/resources/webapp/WEB-INF/shiro.ini18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/resources/webapp/WEB-INF/shiro.ini b/src/main/resources/webapp/WEB-INF/shiro.ini
new file mode 100644
index 0000000..21015af
--- /dev/null
+++ b/src/main/resources/webapp/WEB-INF/shiro.ini
@@ -0,0 +1,18 @@
+[main]
+
+authc.loginUrl=/login.jspx
+roles.unauthorizedUrl = /access-denied.jsp
+
+sha256Matcher = org.apache.shiro.authc.credential.Sha256CredentialsMatcher
+
+myCredentialsMatcher = org.apache.shiro.authc.credential.AllowAllCredentialsMatcher
+
+myRealm = io.trygvis.esper.testing.web.MissingShiroJdbcRealm
+myRealm.authenticationQuery = select 'wat' from person where mail = ?
+myRealm.credentialsMatcher = $myCredentialsMatcher
+
+[urls]
+
+/external/** = anon
+
+/login.jspx = authc