Fix sso docker container build, and enable local account creation for
authorWard Vandewege <ward@curoverse.com>
Tue, 12 May 2015 19:12:46 +0000 (15:12 -0400)
committerWard Vandewege <ward@curoverse.com>
Tue, 12 May 2015 19:12:46 +0000 (15:12 -0400)
this sso container uses.

No issue #

docker/sso/Dockerfile
docker/sso/application.yml.in
docker/sso/secret_token.rb.in [deleted file]

index 4817bab4da4d91da66e497279bed4ac1654a1c3f..7d99ac6e73c21dd06466ec764904ba443709605b 100644 (file)
@@ -7,8 +7,8 @@ RUN git clone git://github.com/curoverse/sso-devise-omniauth-provider.git /usr/s
     /usr/local/rvm/bin/rvm-exec default bundle install --gemfile=/usr/src/sso-provider/Gemfile
 
 # Install generated config files
-ADD generated/secret_token.rb /usr/src/sso-provider/config/initializers/secret_token.rb
 ADD generated/seeds.rb /usr/src/sso-provider/db/seeds.rb
+ADD generated/database.yml /usr/src/sso-provider/config/database.yml
 ADD generated/application.yml /usr/src/sso-provider/config/application.yml
 ADD generated/apache2_vhost /etc/apache2/sites-available/sso-provider
 ADD generated/apache2_vhost /etc/apache2/sites-available/sso-provider
index 712ba2cdef085e6e1c8b15e19f784dcc71872a38..60638513acc61f7f8b3f1d59b4fd5dc5ac831825 100644 (file)
@@ -15,6 +15,10 @@ production:
   secret_token: @@SSO_SECRET@@
   uuid_prefix: 'zzzzz'
 
+  # If true, allow new creation of new accounts in the SSO server's internal
+  # user database.
+  allow_account_registration: true
+
 development:
   # No development settings 
 
diff --git a/docker/sso/secret_token.rb.in b/docker/sso/secret_token.rb.in
deleted file mode 100644 (file)
index bbe3f85..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Your secret key for verifying the integrity of signed cookies.
-# If you change this key, all old signed cookies will become invalid!
-# Make sure the secret is at least 30 characters and all random,
-# no regular words or you'll be exposed to dictionary attacks.
-CfiOauthProvider::Application.config.secret_token = '@@SSO_SECRET@@'