diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-29 18:43:06 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-29 18:43:06 +0100 |
commit | bf3af8f8a444365f3040da2928837986409fa016 (patch) | |
tree | fa731414747a0dc664b8299aaeeb7f583821fba7 /db/migrate | |
parent | 75fb68c4d1eb647a268890c080da2dc3875c0e77 (diff) |
Single Sign On via a ENV['USER_NAME'] mechanism.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20130129154700_add_sso_key.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130129154700_add_sso_key.rb b/db/migrate/20130129154700_add_sso_key.rb new file mode 100644 index 0000000..2e47f39 --- /dev/null +++ b/db/migrate/20130129154700_add_sso_key.rb @@ -0,0 +1,9 @@ +class AddSsoKey < ActiveRecord::Migration + def up + GsParameter.create(:name => 'SingleSignOnEnvUserNameKey', :section => 'Generic', :value => '', :class_type => 'Nil', :description => 'When set to a string this env variable will be used to authenticate the user. e.g. REMOTE_USER') + end + + def down + GsParameter.create(:name => 'SingleSignOnEnvUserNameKey').destroy_all + end +end |