diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-12-23 23:55:05 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-12-23 23:55:05 +0100 |
commit | 70595c41ce404ca68aaa6d1b531c6a858492553b (patch) | |
tree | 6644c653d49c344ca2d005b8fb82b1630a54bb95 /src/main/webapp/WEB-INF/shiro.ini | |
parent | 0cd76a4f295a9b1f833763bcaaf91141f704b5f5 (diff) | |
download | esper-testing-70595c41ce404ca68aaa6d1b531c6a858492553b.tar.gz esper-testing-70595c41ce404ca68aaa6d1b531c6a858492553b.tar.bz2 esper-testing-70595c41ce404ca68aaa6d1b531c6a858492553b.tar.xz esper-testing-70595c41ce404ca68aaa6d1b531c6a858492553b.zip |
o Adding Apache Shiro for security.
Diffstat (limited to 'src/main/webapp/WEB-INF/shiro.ini')
-rw-r--r-- | src/main/webapp/WEB-INF/shiro.ini | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/webapp/WEB-INF/shiro.ini b/src/main/webapp/WEB-INF/shiro.ini new file mode 100644 index 0000000..21015af --- /dev/null +++ b/src/main/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 |