UNC-Libraries/hy-c

View on GitHub
app/models/auth_config.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
class AuthConfig
  # In production, use Shibboleth for user authentication,
  # but in development mode, use local database
  # authentication instead.
  def self.use_database_auth?
    ENV['DATABASE_AUTH'] == 'true'
  end
end