diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-19 00:09:52 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-19 00:09:52 +0000 |
commit | ddf34aa2e69d6c90b4fe95516168254a80eb32f3 (patch) | |
tree | 7e5273c1e222b2cb8d523f2bc4087fe15bc9bcb2 /sca-cpp/trunk/modules/oauth/oauth-conf | |
parent | b796454ac3a94879f122cc19ddec5a7ff87fe5ee (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-x | sca-cpp/trunk/modules/oauth/oauth-conf | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/oauth/oauth-conf b/sca-cpp/trunk/modules/oauth/oauth-conf index 7123d8710e..5c3fde2ccc 100755 --- a/sca-cpp/trunk/modules/oauth/oauth-conf +++ b/sca-cpp/trunk/modules/oauth/oauth-conf @@ -29,7 +29,8 @@ host=`echo $conf | awk '{ print $6 }'` cat >>$root/conf/httpd.conf <<EOF # Generated by: oauth-conf $* # Load support for OAuth authentication -LoadModule mod_tuscany_oauth $here/libmod_tuscany_oauth.so +LoadModule mod_tuscany_oauth1 $here/libmod_tuscany_oauth1.so +LoadModule mod_tuscany_oauth2 $here/libmod_tuscany_oauth2.so # Enable OAuth authentication <Location /> @@ -49,10 +50,20 @@ AuthOAuth Off AuthOAuth Off </Location> +# Configure OAuth App keys +Include $root/cert/oauth-keys.conf +Include $HOME/.oauth/*-key.conf + +EOF + +cat >$root/cert/oauth-keys.conf <<EOF +# Generated by: oauth-conf $* +# OAuth App keys + EOF cat >>$root/conf/vhost-ssl.conf <<EOF -# Generated by: openid-conf $* +# Generated by: oauth-conf $* # Require OAuth authentication <Location /> AuthType Open |