Sha256: f169eabb59f767c763684374e347521ff365863307b3d016b4c30ab097825a1f

Contents?: true

Size: 880 Bytes

Versions: 2

Compression:

Stored size: 880 Bytes

Contents

# rack-screen-door

Rack middleware for simple question and answer authorization.

This can be useful to add a thin veneer around website to help it stay
semi-private, e.g., during the development stages.

**WARNING: This is really poor security.** Think of it as a...well...screen door.

## Install

    gem install rack-screen-door

## Usage

    require 'rack/screen_door'

    use Rack::ScreenDoor 'secret answer'

Additional options can be supplied:

    use Rack::ScreenDoor 'secret answer',
      :salt => 'some server-side secret',
      :template_path => 'path/to/my_screen_door.html.erb',
      :cookie_key => 'my_cookie_name',
      :cookie_hash => { :domain => '.example.org', :secure => true },
      :expires => 1.year

See [default_template.html.erb](https://github.com/patdeegan/rack-screen-door/blob/master/default_template.html.erb) as an example template file.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-screen-door-0.0.2 README.md
rack-screen-door-0.0.1 README.md