summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/oauth/oauth-app-conf
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-09-19 00:09:52 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-09-19 00:09:52 +0000
commitddf34aa2e69d6c90b4fe95516168254a80eb32f3 (patch)
tree7e5273c1e222b2cb8d523f2bc4087fe15bc9bcb2 /sca-cpp/trunk/modules/oauth/oauth-app-conf
parentb796454ac3a94879f122cc19ddec5a7ff87fe5ee (diff)
Improvements to the oauth module and support for oauth 1.0a using liboauth.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@998571 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rwxr-xr-xsca-cpp/trunk/modules/oauth/oauth1-appkey-conf (renamed from sca-cpp/trunk/modules/oauth/oauth-app-conf)16
1 files changed, 10 insertions, 6 deletions
diff --git a/sca-cpp/trunk/modules/oauth/oauth-app-conf b/sca-cpp/trunk/modules/oauth/oauth1-appkey-conf
index 56beb0af95..fca7d4e8f3 100755
--- a/sca-cpp/trunk/modules/oauth/oauth-app-conf
+++ b/sca-cpp/trunk/modules/oauth/oauth1-appkey-conf
@@ -20,13 +20,17 @@
here=`readlink -f $0`; here=`dirname $here`
mkdir -p $1
root=`readlink -f $1`
-id=$2
-secret=$3
+name=$2
+id=$3
+secret=$4
-# Configure an OAuth App
-cat >>$root/conf/httpd.conf <<EOF
-# Generated by: oauth-app-conf $*
-AddAuthOAuthApp $id $secret
+# Configure an OAuth 1.0 app key
+mkdir -p $root/cert
+umask 0007
+
+cat >>$root/cert/oauth-keys.conf <<EOF
+# Generated by: oauth1-appkey-conf $*
+AddAuthOAuth1AppKey $name $id $secret
EOF