From 4edb611792cbf0a3335631a181c15095e81e8afa Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 3 Jan 2013 07:42:01 +0000 Subject: Minor changes to server config scripts to get auth and session management to behave the same with or without a proxy. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1428194 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/http/open-auth-conf | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'sca-cpp/trunk/modules/http/open-auth-conf') 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 # Use HTTPD form-based authentication +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 + + + +SetHandler mod_tuscany_openauth_logout +AuthType Open +AuthName "$host" +Session On +Require valid-user + + +EOF + +cat >>$root/conf/pubauth$sslsuffix.conf < +Session On + + +Session On EOF -- cgit v1.2.3