mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
* Remove all methods implementing and checking for the old algorithm * Document a pre-upgrade step to check for remaining obsolete passwords * Remove config.salt
27 lines
451 B
Ruby
27 lines
451 B
Ruby
module Tracks
|
|
|
|
class Config
|
|
|
|
def self.auth_schemes
|
|
SITE_CONFIG['authentication_schemes'] || []
|
|
end
|
|
|
|
def self.openid_enabled?
|
|
auth_schemes.include?('open_id')
|
|
end
|
|
|
|
def self.cas_enabled?
|
|
auth_schemes.include?('cas')
|
|
end
|
|
|
|
def self.prefered_auth?
|
|
if SITE_CONFIG['prefered_auth']
|
|
SITE_CONFIG['prefered_auth']
|
|
else
|
|
auth_schemes.first
|
|
end
|
|
end
|
|
|
|
end
|
|
|
|
end
|