Sha256: 5dacce2e2b30f246b51b77a398fa8b56402da7be13b7646adeed7d5f65f67495

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

require 'rack/lobster'
require 'rack/simple_auth'

request_config = {
  'GET' => 'pathasdf',
  'POST' => 'paramas',
  'DELETE' => 'path',
  'PUT' => 'path',
  'PATCH' => 'path',
}

use Rack::SimpleAuth::HMAC::Middleware do |options|
  options.tolerance = 0.5
  options.stepsize  = 0.01

  options.secret = 'test_secret'
  options.signature = 'test_signature'

  options.logpath = "#{File.expand_path('..', __FILE__)}/logs"
  options.request_config = request_config
end

run Rack::Lobster.new

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-simple_auth-1.0.0rc test/rack/simple_auth/hmac/config_fail.ru