summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/openid
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-07-16 06:47:49 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-07-16 06:47:49 +0000
commit11522a4b90a4056319cdbc204fffc63780cbfa51 (patch)
treefde77f10429bc13b042d6ac779f0b89149c8334d /sca-cpp/trunk/modules/openid
parentf82576588fc9672a011655e709179eb43e5ab5b4 (diff)
Add an HTTPD auth provider allowing the authentication logic to be implemented by a component, and cleanup the SSL and mod-security config a bit.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1361915 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/openid')
-rwxr-xr-xsca-cpp/trunk/modules/openid/openid-conf9
-rwxr-xr-xsca-cpp/trunk/modules/openid/start-test6
2 files changed, 13 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/openid/openid-conf b/sca-cpp/trunk/modules/openid/openid-conf
index d07e4b7cad..7f986fc8d7 100755
--- a/sca-cpp/trunk/modules/openid/openid-conf
+++ b/sca-cpp/trunk/modules/openid/openid-conf
@@ -33,6 +33,12 @@ else
sslsuffix="-ssl"
fi
+if [ "$2" = "" ]; then
+ providers="file"
+else
+ providers="$2"
+fi
+
# Configure HTTPD mod_auth_openid module
cat >>$root/conf/modules.conf <<EOF
# Generated by: openid-conf $*
@@ -55,6 +61,9 @@ cat >>$root/conf/locauth$sslsuffix.conf <<EOF
<Location />
AuthType Open
AuthName "$host"
+#AuthOpenIDProvider socache $providers
+#AuthnCacheProvideFor $providers
+#AuthnCacheContext /
Require valid-user
AuthOpenIDEnabled On
AuthOpenIDCookiePath /
diff --git a/sca-cpp/trunk/modules/openid/start-test b/sca-cpp/trunk/modules/openid/start-test
index f0d27d16be..56ebbc3736 100755
--- a/sca-cpp/trunk/modules/openid/start-test
+++ b/sca-cpp/trunk/modules/openid/start-test
@@ -32,8 +32,10 @@ rm -rf tmp
./openid-memcached-conf tmp localhost 11213
./openid-step2-conf tmp
-# For this test to work you need to add your openid (or email address if
-# available from your openid attributes to the the authorized user group
+# For this test to work you need to add your openid user id to the
+# password file with a dummy 'password' password, and to the group
+# of authorized users
+../../modules/http/passwd-auth-conf tmp /openid/jane@example.com password
../../modules/http/group-auth-conf tmp jane@example.com
../../modules/server/server-conf tmp