diff options
Diffstat (limited to 'sca-cpp/trunk/modules/openid')
-rw-r--r-- | sca-cpp/trunk/modules/openid/htdocs/logout/index.html | 3 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/openid/openid-conf | 8 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/openid/openid-step2-conf | 10 | ||||
-rwxr-xr-x | sca-cpp/trunk/modules/openid/start-test | 4 |
4 files changed, 7 insertions, 18 deletions
diff --git a/sca-cpp/trunk/modules/openid/htdocs/logout/index.html b/sca-cpp/trunk/modules/openid/htdocs/logout/index.html index 6c7a9393cc..55cbfac110 100644 --- a/sca-cpp/trunk/modules/openid/htdocs/logout/index.html +++ b/sca-cpp/trunk/modules/openid/htdocs/logout/index.html @@ -20,11 +20,10 @@ <html><body> <h1>Sign out</h1> -<form name="signout" action="/" method="GET"> +<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.signout.action = "/login"; document.signout.submit(); return true; } diff --git a/sca-cpp/trunk/modules/openid/openid-conf b/sca-cpp/trunk/modules/openid/openid-conf index b98b4030c4..206281db38 100755 --- a/sca-cpp/trunk/modules/openid/openid-conf +++ b/sca-cpp/trunk/modules/openid/openid-conf @@ -20,17 +20,11 @@ # Generate an OpenID server conf here=`readlink -f $0`; here=`dirname $here` root=`readlink -f $1` -host=$2 -port=`echo $3 | awk -F "/" '{ print $1 }'` -pport=`echo $3 | awk -F "/" '{ print $2 }'` -if [ "$pport" = "" ]; then - pport=$port -fi -htdocs=`readlink -f $4` openid_prefix=`cat openid.prefix` # Configure HTTPD mod_auth_openid module cat >>$root/conf/httpd.conf <<EOF +# Generated by: openid-conf $* # Support for OpenID authentication LoadModule authopenid_module $openid_prefix/modules/mod_auth_openid.so diff --git a/sca-cpp/trunk/modules/openid/openid-step2-conf b/sca-cpp/trunk/modules/openid/openid-step2-conf index 4ca4150483..5e46f82d6a 100755 --- a/sca-cpp/trunk/modules/openid/openid-step2-conf +++ b/sca-cpp/trunk/modules/openid/openid-step2-conf @@ -20,16 +20,12 @@ # Generate an OpenID Step2 server conf here=`readlink -f $0`; here=`dirname $here` root=`readlink -f $1` -host=$2 -port=`echo $3 | awk -F "/" '{ print $1 }'` -pport=`echo $3 | awk -F "/" '{ print $2 }'` -if [ "$pport" = "" ]; then - pport=$port -fi -htdocs=`readlink -f $4` +conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"` +host=`echo $conf | awk '{ print $6 }'` # Configure HTTPD to serve OpenID XRDS and LRDD documents cat >>$root/conf/httpd.conf <<EOF +# Generated by: openid-step2-conf $* # Serve OpenID XRDS document Alias /openid $root/conf/openid.xrds <Location /openid> diff --git a/sca-cpp/trunk/modules/openid/start-test b/sca-cpp/trunk/modules/openid/start-test index 11a0d0b511..b9d3191b11 100755 --- a/sca-cpp/trunk/modules/openid/start-test +++ b/sca-cpp/trunk/modules/openid/start-test @@ -19,8 +19,8 @@ # Setup ../../modules/http/httpd-conf tmp localhost 8090 htdocs -./openid-conf tmp localhost 8090 htdocs -./openid-step2-conf tmp localhost 8090 htdocs +./openid-conf tmp +./openid-step2-conf tmp ../../modules/server/server-conf tmp ../../modules/server/scheme-conf tmp cat >>tmp/conf/httpd.conf <<EOF |