Implementaion of czmq zauth class
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis
rockspecs
src/lua
test
.gitignore
.travis.yml
LICENSE
README.md
lakeconfig.lua
lakefile

README.md

lzmq-auth

Build Status

Implementaion of czmq zauth class.
For now lzmq-auth does not support automatic reload password and certificates files.

###Install

Using LuaRocks:

You need install lzmq or lzmq-ffi (>3.1). To support unit test and CURVE certificate directory you need lua-path module.

luarocks install lzmq
luarocks install lzmq-auth
luarocks install lua-path
luarocks install luafilesystem

###Usage

local zmq   = require "lzmq"
local zauth = require "lzmq.auth"
local ctx   = zmq.context()
local auth  = zauth.new(ctx)

auth:start()            -- start ZAP service thread
auth:allow('127.0.0.1') -- add IP address to whitelist

-- regular ZMQ code

auth:stop()             -- stop ZAP service thread

Bitdeli Badge