diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-18 20:19:11 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-18 20:19:11 +0000 |
commit | 3ac8ca7868ade978a3d0fc74113f3276e5c183ec (patch) | |
tree | bcec824aaee082426af297c1ebc331b98c25824f /sca-cpp/trunk/modules/http/group-auth-conf | |
parent | 0498e9dd768e270b74045acd96075306c29a9b4a (diff) |
Add ability to configure an HTTPS proxy with load balancing over a set of HTTP backend servers and get OAuth authentication working with that topology.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1220526 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/http/group-auth-conf')
-rwxr-xr-x | sca-cpp/trunk/modules/http/group-auth-conf | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sca-cpp/trunk/modules/http/group-auth-conf b/sca-cpp/trunk/modules/http/group-auth-conf index c9cd7f6e2e..726c55982d 100755 --- a/sca-cpp/trunk/modules/http/group-auth-conf +++ b/sca-cpp/trunk/modules/http/group-auth-conf @@ -23,6 +23,13 @@ root=`echo "import os; print os.path.realpath('$1')" | python` user=$2 group="members" +# Disallow public access to server resources +cat >$root/conf/noauth.conf <<EOF +# Generated by: group-auth-conf $* +# Disallow public access to server resources + +EOF + # Add user to group cat $root/conf/httpd.groups | awk " BEGIN { found = 0 } /$group: / { printf \"%s %s\n\", \$0, \"$user\"; found = 1 } !/$group: / { printf \"%s\n\", \$0 } END { if (found == 0) printf \"%s: %s\n\", \"$group\", \"$user\" } " >$root/conf/.httpd.groups.tmp 2>/dev/null cp $root/conf/.httpd.groups.tmp $root/conf/httpd.groups @@ -35,7 +42,6 @@ if [ "$conf" = "" ]; then # Generated by: group-auth-conf $1 # Allow group member access to root location <Location /> -AuthGroupFile "$root/conf/httpd.groups" Require group members </Location> |