summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/oauth/oauth-app-conf
diff options
context:
space:
mode:
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