app/controllers/callbacks_controller.rb
def authenticate
    authenticate_or_request_with_http_token do |token|
      ActiveSupport::SecurityUtils.secure_compare(token, ENV['GOVUK_NOTIFY_BEARER_TOKEN'])
    end
  end
# For now we only have a service (Notify) using callbacks, so we don't
# need to parametrise this method, as we only need one ENV variable.
#
For now we only have a service (Notify) using callbacks, so we don't
need to parametrise this method, as we only need one ENV variable.
For now we only have a service ( Notify ) using callbacks so we don ' t need to parametrise this method as we only need one ENV variable .
def authenticate
    authenticate_or_request_with_http_token do |token|
      ActiveSupport::SecurityUtils.secure_compare(token, ENV['GOVUK_NOTIFY_BEARER_TOKEN'])
    end
  end
def authenticate authenticate_or_request_with_http_token do | token | ActiveSupport :: SecurityUtils . secure_compare ( token , ENV [ 'GOVUK_NOTIFY_BEARER_TOKEN' ] ) end end
For now we only have a service (Notify) using callbacks, so we don't
need to parametrise this method, as we only need one ENV variable.
For now we only have a service ( Notify ) using callbacks so we don ' t need to parametrise this method as we only need one ENV variable .