Sha256: 5e2d030111d03271da700eb4a0a24bebd4d3cb536ba40010448103edf0c58446

Contents?: true

Size: 363 Bytes

Versions: 6

Compression:

Stored size: 363 Bytes

Contents

class PeakFlowUtils::ApplicationController < ActionController::Base
  protect_from_forgery with: :exception

  before_action :authenticate

private

  def authenticate
    authenticate_or_request_with_http_basic do |username, password|
      username == ENV.fetch("PEAK_FLOW_PINGS_USERNAME") && password == ENV.fetch("PEAK_FLOW_PINGS_PASSWORD")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
peak_flow_utils-0.1.11 app/controllers/peak_flow_utils/application_controller.rb
peak_flow_utils-0.1.10 app/controllers/peak_flow_utils/application_controller.rb
peak_flow_utils-0.1.9 app/controllers/peak_flow_utils/application_controller.rb
peak_flow_utils-0.1.8 app/controllers/peak_flow_utils/application_controller.rb
peak_flow_utils-0.1.7 app/controllers/peak_flow_utils/application_controller.rb
peak_flow_utils-0.1.6 app/controllers/peak_flow_utils/application_controller.rb