You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2010/09/06 09:44:44 UTC

svn commit: r992962 - in /tuscany/sca-cpp/trunk: modules/openid/htdocs/logout/index.html modules/openid/openid-conf modules/openid/openid-memcached-conf samples/store-cluster/htdocs/logout/index.html

Author: jsdelfino
Date: Mon Sep  6 07:44:44 2010
New Revision: 992962

URL: http://svn.apache.org/viewvc?rev=992962&view=rev
Log:
Use secure cookies for OpenID auth sessions. Renamed OpenID memcached config directive to follow HTTPD naming convention.

Modified:
    tuscany/sca-cpp/trunk/modules/openid/htdocs/logout/index.html
    tuscany/sca-cpp/trunk/modules/openid/openid-conf
    tuscany/sca-cpp/trunk/modules/openid/openid-memcached-conf
    tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html

Modified: tuscany/sca-cpp/trunk/modules/openid/htdocs/logout/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/htdocs/logout/index.html?rev=992962&r1=992961&r2=992962&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/htdocs/logout/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/openid/htdocs/logout/index.html Mon Sep  6 07:44:44 2010
@@ -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;
 }

Modified: tuscany/sca-cpp/trunk/modules/openid/openid-conf
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/openid-conf?rev=992962&r1=992961&r2=992962&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/openid-conf (original)
+++ tuscany/sca-cpp/trunk/modules/openid/openid-conf Mon Sep  6 07:44:44 2010
@@ -37,6 +37,8 @@ LoadModule authopenid_module  $openid_pr
 AuthType OpenID
 AuthOpenIDEnabled On
 AuthOpenIDCookiePath /
+AuthOpenIDCookieName TuscanyOpenIDAuth
+AuthOpenIDSecureCookie On
 AuthOpenIDLoginPage /login
 AuthOpenIDAXAdd EMAIL http://axschema.org/contact/email
 </Location>

Modified: tuscany/sca-cpp/trunk/modules/openid/openid-memcached-conf
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/openid-memcached-conf?rev=992962&r1=992961&r2=992962&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/openid-memcached-conf (original)
+++ tuscany/sca-cpp/trunk/modules/openid/openid-memcached-conf Mon Sep  6 07:44:44 2010
@@ -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
 

Modified: tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html?rev=992962&r1=992961&r2=992962&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html Mon Sep  6 07:44:44 2010
@@ -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;
 }