Sha256: fa4e4c13374c0ca7fd121e845f1690b0a40c2707c71e066ffc0c63de5dff8b60
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 Bytes
Contents
module SwaggerUiEngine2 class ApplicationController < ActionController::Base include SwaggerUiEngine2::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
swagger_ui_engine_2-1.0.1 | app/controllers/swagger_ui_engine2/application_controller.rb |
swagger_ui_engine_2-0.2.0 | app/controllers/swagger_ui_engine2/application_controller.rb |