aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/configuration_builders/server.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-04-21 13:37:12 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-04-21 13:37:12 +0100
commit84b1abf30fe79032209cb0fcd0bfa9d6aaf37721 (patch)
tree403433b040d2b51b5d40c56b10a530e7fcf2aef4 /lib/mauve/configuration_builders/server.rb
parent392a87cfa181a762bf4b3244aa3c6d065ef15253 (diff)
Overhaul of authentication.
* Added new configuration options: ** bytemark_calendar_url ** bytemark_auth_url ** remote_https_verify_mode ** remote_http_timeout ** failed_login_delay * Added authentication tests * Removed remote auth tests in from the web interface tests. * If no bytemark_auth_url is set, then no remote auth takes place. * SSL peer cert validation now takes place by default. * Removed old logic tests * Tidied the way tests take place a little.
Diffstat (limited to 'lib/mauve/configuration_builders/server.rb')
-rw-r--r--lib/mauve/configuration_builders/server.rb27
1 files changed, 26 insertions, 1 deletions
diff --git a/lib/mauve/configuration_builders/server.rb b/lib/mauve/configuration_builders/server.rb
index feb75b8..d22ed87 100644
--- a/lib/mauve/configuration_builders/server.rb
+++ b/lib/mauve/configuration_builders/server.rb
@@ -170,7 +170,32 @@ module Mauve
#
is_attribute "use_packet_buffer"
is_attribute "use_notification_buffer"
-
+
+ #
+ # This is where the calendar is located. The request paths are hard-coded.
+ #
+ is_attribute "bytemark_calendar_url"
+
+ #
+ # This is where the Bytemark authentication server is located.
+ #
+ is_attribute "bytemark_auth_url"
+
+ #
+ # This is the level of SSL verification used when making external HTTPS connections.
+ #
+ is_attribute "remote_https_verify_mode"
+
+ #
+ # This is the default timeout when making remote HTTP requests
+ #
+ is_attribute "remote_http_timeout"
+
+ #
+ # This is the default sleep time after an authentication attempt has failed.
+ #
+ is_attribute "failed_login_delay"
+
def builder_setup
@result = Mauve::Server.instance
end