summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/http/open-auth-conf
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/modules/http/open-auth-conf')
-rwxr-xr-xsca-cpp/trunk/modules/http/open-auth-conf30
1 files changed, 24 insertions, 6 deletions
diff --git a/sca-cpp/trunk/modules/http/open-auth-conf b/sca-cpp/trunk/modules/http/open-auth-conf
index f4715b3a1c..5a8db92972 100755
--- a/sca-cpp/trunk/modules/http/open-auth-conf
+++ b/sca-cpp/trunk/modules/http/open-auth-conf
@@ -42,7 +42,7 @@ fi
if [ "$2" = "" ]; then
providers="file"
else
- providers="$2 file"
+ providers="file $2"
fi
if [ "$3" = "" ]; then
@@ -76,24 +76,42 @@ AuthName "$host"
AuthOpenAuthProvider socache $providers
AuthnCacheProvideFor $providers
AuthnCacheContext /
+AuthOpenAuthLoginPage /login/
Session On
SessionCryptoPassphrase $pw
AuthOpenAuth On
-AuthOpenAuthLoginPage /login/
Require valid-user
</Location>
# Use HTTPD form-based authentication
<Location /login/dologin>
+SetHandler form-login-handler
AuthType Form
AuthName "$host"
AuthFormProvider socache $providers
-AuthnCacheProvideFor $providers
-AuthnCacheContext /
AuthFormLoginRequiredLocation /login/?openauth_attempt=1
-AuthFormLogoutLocation /
+Session On
Require valid-user
-SetHandler form-login-handler
+</Location>
+
+<Location /logout/dologout>
+SetHandler mod_tuscany_openauth_logout
+AuthType Open
+AuthName "$host"
+Session On
+Require valid-user
+</Location>
+
+EOF
+
+cat >>$root/conf/pubauth$sslsuffix.conf <<EOF
+# Generated by: open-auth-conf $*
+# Enable Tuscany open authentication
+<Location /login/dologin>
+Session On
+</Location>
+<Location /logout/dologout>
+Session On
</Location>
EOF