diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-01-03 07:42:01 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-01-03 07:42:01 +0000 |
commit | 4edb611792cbf0a3335631a181c15095e81e8afa (patch) | |
tree | 111cbec79d7b2861396fe886004f3be58635e99d /sca-cpp/trunk/modules/http/form-auth-conf | |
parent | d7069b5a2e7859ab14c5a909d5e5fc6bc84b80cb (diff) |
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
Diffstat (limited to 'sca-cpp/trunk/modules/http/form-auth-conf')
-rwxr-xr-x | sca-cpp/trunk/modules/http/form-auth-conf | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/sca-cpp/trunk/modules/http/form-auth-conf b/sca-cpp/trunk/modules/http/form-auth-conf index fbe943f3d9..ba2f99dbf1 100755 --- a/sca-cpp/trunk/modules/http/form-auth-conf +++ b/sca-cpp/trunk/modules/http/form-auth-conf @@ -28,7 +28,7 @@ host=`echo $conf | awk '{ print $6 }'` if [ "$2" = "" ]; then providers="file" else - providers="$2 file" + providers="file $2" fi if [ "$3" = "" ]; then @@ -63,19 +63,41 @@ AuthFormProvider socache $providers AuthnCacheProvideFor $providers AuthnCacheContext / AuthFormLoginRequiredLocation /login/ -AuthFormLogoutLocation / Session On -SessionCookieName TuscanyFormAuth domain=.$host; path=/ +SessionCookieName TuscanyFormAuth domain=.$host; path=/; secure; httponly SessionCryptoPassphrase $pw Require valid-user </Location> <Location /login/dologin> SetHandler form-login-handler +AuthType Form +AuthName "$host" +AuthFormProvider socache $providers +AuthFormLoginRequiredLocation /login/?openauth_attempt=1 +Session On +Require valid-user </Location> <Location /logout/dologout> SetHandler form-logout-handler +AuthType Form +AuthName "$host" +AuthFormLogoutLocation / +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 |