Sha256: 9662b2b3510eec5a4c009bfb7e060dd12e6af08031346931bac42c7160325277

Contents?: true

Size: 180 Bytes

Versions: 2

Compression:

Stored size: 180 Bytes

Contents

module Warden
  class AlwaysAuthenticate
    def initialize app
      @app = app
    end

    def call env
      env['warden'].authenticate!
      @app.call env
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
warden-always-authenticate-0.0.2 lib/warden/always_authenticate.rb
warden-always-authenticate-0.0.1 lib/warden/always_authenticate.rb