Module: Authentication
- Defined in:
- lib/authentication.rb
Constant Summary collapse
- ACCEPTABLE_TYPES =
%w( saml database disabled ).freeze
Class Method Summary collapse
Class Method Details
.type ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/authentication.rb', line 9 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 |