summaryrefslogtreecommitdiff
path: root/htetc
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-04-05 01:03:44 -0700
committerIvan Kohler <ivan@freeside.biz>2013-04-05 01:03:44 -0700
commit3ff1fb4e10fdaef86527c10bd416e988d2a62a49 (patch)
tree114c4e41e06749796283bf475b6fcf1c23171fb4 /htetc
parentb70a4b7f41c84aefd7f273974db59e5c37fc368b (diff)
login/login pages and cookie/session-based auth
Diffstat (limited to 'htetc')
-rw-r--r--htetc/freeside-base2.conf54
-rw-r--r--htetc/htpasswd.logout1
2 files changed, 37 insertions, 18 deletions
diff --git a/htetc/freeside-base2.conf b/htetc/freeside-base2.conf
index 49b4a24..1bbe90a 100644
--- a/htetc/freeside-base2.conf
+++ b/htetc/freeside-base2.conf
@@ -14,28 +14,48 @@ PerlRequire "%%%MASON_HANDLER%%%"
#
AddDefaultCharset UTF-8
+PerlModule FS::AuthCookieHandler
+
+#XXX need to also work properly for installs w/o /freeside/ in path
+PerlSetVar FreesideLoginScript /freeside/loginout/login.html
+
+#PerlSetVar FreesideEverSecure 1
+PerlSetVar FreesideHttpOnly 1
+
<Directory %%%FREESIDE_DOCUMENT_ROOT%%%>
-AuthName Freeside
-AuthType Basic
-AuthUserFile %%%FREESIDE_CONF%%%/htpasswd
-require valid-user
-<Files ~ "(\.cgi|\.html)$">
-SetHandler perl-script
-PerlHandler HTML::Mason
+
+ AuthName Freeside
+ AuthType FS::AuthCookieHandler
+ PerlAuthenHandler FS::AuthCookieHandler->authenticate
+ PerlAuthzHandler FS::AuthCookieHandler->authorize
+ require valid-user
+
+ <Files ~ "(\.cgi|\.html)$">
+ SetHandler perl-script
+ PerlHandler HTML::Mason
+ </Files>
+
+</Directory>
+
+<Files login>
+ AuthName Freeside
+ AuthType FS::AuthCookieHandler
+ SetHandler perl-script
+ PerlHandler FS::AuthCookieHandler->login
</Files>
+
+<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/elements/>
+ <Files "freeside.css">
+ Satisfy any
+ </Files>
</Directory>
+
<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Helpers/>
-SetHandler perl-script
-PerlHandler HTML::Mason
+ SetHandler perl-script
+ PerlHandler HTML::Mason
</Directory>
-<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/loginout>
-AuthName Freeside
-AuthType Basic
-AuthUserFile %%%FREESIDE_CONF%%%/htpasswd.logout
-require valid-user
-<Files ~ "(\.cgi|\.html)$">
-SetHandler default-handler
-</Files>
+<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/REST/1.0/NoAuth/>
+ Satisfy any
</Directory>
diff --git a/htetc/htpasswd.logout b/htetc/htpasswd.logout
deleted file mode 100644
index 3523f23..0000000
--- a/htetc/htpasswd.logout
+++ /dev/null
@@ -1 +0,0 @@
-magic:Jgvaxb502SIqQ