summaryrefslogtreecommitdiffstats
path: root/sca-cpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-09-06 07:44:44 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-09-06 07:44:44 +0000
commite6c50210013371ca5c1e45e4c86178a1fc212d49 (patch)
tree345ddcb4eb32d492f017d5e784306fb3ec1fc471 /sca-cpp
parent66b60290f3ee2606d62fbad5943f10e496d90035 (diff)
Use secure cookies for OpenID auth sessions. Renamed OpenID memcached config directive to follow HTTPD naming convention.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@992962 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp')
-rw-r--r--sca-cpp/trunk/modules/openid/htdocs/logout/index.html2
-rwxr-xr-xsca-cpp/trunk/modules/openid/openid-conf2
-rwxr-xr-xsca-cpp/trunk/modules/openid/openid-memcached-conf2
-rw-r--r--sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html2
4 files changed, 5 insertions, 3 deletions
diff --git a/sca-cpp/trunk/modules/openid/htdocs/logout/index.html b/sca-cpp/trunk/modules/openid/htdocs/logout/index.html
index 55cbfac110..5b58a1c38b 100644
--- a/sca-cpp/trunk/modules/openid/htdocs/logout/index.html
+++ b/sca-cpp/trunk/modules/openid/htdocs/logout/index.html
@@ -23,7 +23,7 @@
<form name="signout" action="/login" method="GET">
<script type="text/javascript">
function submitSignout() {
- document.cookie = 'open_id_session_id=;expires=' + new Date(1970,01,01).toGMTString() + ';path=/';
+ document.cookie = 'TuscanyOpenIDAuth=;expires=' + new Date(1970,01,01).toGMTString() + ';path=/;secure=TRUE';
document.signout.submit();
return true;
}
diff --git a/sca-cpp/trunk/modules/openid/openid-conf b/sca-cpp/trunk/modules/openid/openid-conf
index cc503e629d..a8314261ac 100755
--- a/sca-cpp/trunk/modules/openid/openid-conf
+++ b/sca-cpp/trunk/modules/openid/openid-conf
@@ -37,6 +37,8 @@ LoadModule authopenid_module $openid_prefix/modules/mod_auth_openid.so
AuthType OpenID
AuthOpenIDEnabled On
AuthOpenIDCookiePath /
+AuthOpenIDCookieName TuscanyOpenIDAuth
+AuthOpenIDSecureCookie On
AuthOpenIDLoginPage /login
AuthOpenIDAXAdd EMAIL http://axschema.org/contact/email
</Location>
diff --git a/sca-cpp/trunk/modules/openid/openid-memcached-conf b/sca-cpp/trunk/modules/openid/openid-memcached-conf
index 1dfbd3b502..776631dab8 100755
--- a/sca-cpp/trunk/modules/openid/openid-memcached-conf
+++ b/sca-cpp/trunk/modules/openid/openid-memcached-conf
@@ -26,7 +26,7 @@ port=$3
# Configure HTTPD mod_auth_openid module cache
cat >>$root/conf/httpd.conf <<EOF
# Generated by: openid-cache-conf $*
-AuthOpenIDMemcached $host:$port
+AddAuthOpenIDMemcached $host:$port
EOF
diff --git a/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html b/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html
index 55cbfac110..5b58a1c38b 100644
--- a/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html
+++ b/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html
@@ -23,7 +23,7 @@
<form name="signout" action="/login" method="GET">
<script type="text/javascript">
function submitSignout() {
- document.cookie = 'open_id_session_id=;expires=' + new Date(1970,01,01).toGMTString() + ';path=/';
+ document.cookie = 'TuscanyOpenIDAuth=;expires=' + new Date(1970,01,01).toGMTString() + ';path=/;secure=TRUE';
document.signout.submit();
return true;
}