Sha256: 79982f520fc9e40237085fa72826efaf77d8c9b34a1d3cbcc8f071e90ce0adc1
Contents?: true
Size: 492 Bytes
Versions: 3
Compression:
Stored size: 492 Bytes
Contents
module SwaggerUiEngineRails7 class ApplicationController < ActionController::Base include SwaggerUiEngineRails7::AuthConfigParser protect_from_forgery with: :exception layout false before_action :authenticate_admin protected def authenticate_admin return unless basic_authentication_enabled? authenticate_or_request_with_http_basic do |username, password| username == admin_username && password == admin_password end end end end
Version data entries
3 entries across 3 versions & 1 rubygems