emory-libraries/dlp-selfdeposit

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, we use Shibboleth for user authentication,
  # but in development mode, you may want to use local database
  # authentication instead.
  def self.use_database_auth?
    ENV['DATABASE_AUTH'] == 'true'
  end
end