diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-11-14 07:10:15 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-11-14 07:10:15 +0000 |
commit | 4bf0a7052b448315eda710857acafe24bb112a5b (patch) | |
tree | 89b47bf8471da886a2c523721d76c6ebd5860c28 /sca-cpp/trunk/modules/oauth/oauth-conf | |
parent | 1b4cab13b70f2d596ecb98e81073dbb45e0e85df (diff) |
Change authentication scheme from Form based auth to OpenID + OAuth.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1201614 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/oauth/oauth-conf')
-rwxr-xr-x | sca-cpp/trunk/modules/oauth/oauth-conf | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sca-cpp/trunk/modules/oauth/oauth-conf b/sca-cpp/trunk/modules/oauth/oauth-conf index 02f81a240b..856eea7f39 100755 --- a/sca-cpp/trunk/modules/oauth/oauth-conf +++ b/sca-cpp/trunk/modules/oauth/oauth-conf @@ -41,6 +41,12 @@ LoadModule mod_tuscany_oauth2 $here/libmod_tuscany_oauth2$libsuffix EOF +cat >$root/cert/oauth-keys.conf <<EOF +# Generated by: oauth-conf $* +# OAuth App keys + +EOF + cat >>$root/conf/auth.conf <<EOF # Generated by: oauth-conf $* # Enable OAuth authentication @@ -54,13 +60,14 @@ Require valid-user # 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 +if [ -d "$HOME/.oauth" ]; then + cat >>$root/conf/auth.conf <<EOF +# Configure OAuth App keys +Include $HOME/.oauth/*-key.conf EOF +fi |