Class: Tracks::Config
- Inherits:
-
Object
- Object
- Tracks::Config
- Defined in:
- lib/tracks/config.rb
Class Method Summary collapse
Class Method Details
.auth_schemes ⇒ Object
3 4 5 |
# File 'lib/tracks/config.rb', line 3 def self.auth_schemes SITE_CONFIG['authentication_schemes'] || [] end |
.cas_enabled? ⇒ Boolean
11 12 13 |
# File 'lib/tracks/config.rb', line 11 def self.cas_enabled? auth_schemes.include?('cas') end |
.openid_enabled? ⇒ Boolean
7 8 9 |
# File 'lib/tracks/config.rb', line 7 def self.openid_enabled? auth_schemes.include?('open_id') end |
.prefered_auth? ⇒ Boolean
15 16 17 18 19 20 21 |
# File 'lib/tracks/config.rb', line 15 def self.prefered_auth? if SITE_CONFIG['prefered_auth'] SITE_CONFIG['prefered_auth'] else auth_schemes.first end end |