Sha256: 7d4141f3a441cd90a28d34ae46ea3a355030d64df1368fc3664ef5b6467f4627
Contents?: true
Size: 441 Bytes
Versions: 16
Compression:
Stored size: 441 Bytes
Contents
module Authentication class << self ACCEPTABLE_TYPES = %w( saml database disabled ).freeze def type raise 'auth_type must be present in config.yml' unless APP_CONFIG['auth_type'] unless ACCEPTABLE_TYPES.include?(APP_CONFIG['auth_type']) raise "Unacceptable auth_type, valid types are: #{ACCEPTABLE_TYPES.join(',')}" end APP_CONFIG['auth_type'].try(:inquiry) end end end
Version data entries
16 entries across 16 versions & 1 rubygems