Hi,
i am trying to work with WSAPI while "porting" the jsonrpc server available
in the http://json.luaforge.net/ package from cgilua to "plain" WSAPI.
I tried to get the HTTP auth info out of the WSAPI but i am failing...
(wsapi response:)
res["WWW-Authenticate"] = 'Basic realm="test"';
res.status = 401
Then i get the http auth dialog, that's working. But - when i enter user
and password, where can i get the auth data (entered user+pass) from?
I tried to look at the wsapi lua files and saw something that rewrites
the environment, it seems that there should be an
env["authorization"] but if i try to get that with
wsapi_env.env["authorization"] it's empty...
Is there a documentation somewhere about that stuff?
I also tried to get the info which cgienv vars are set, but
wsapi_env.env seems to be a method instead a table?
Bye
Björn
_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/