luci-mod-rpc: rework authentication and session handling
authorJo-Philipp Wich <jo@mein.io>
Fri, 6 Apr 2018 05:56:56 +0000 (07:56 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 6 Apr 2018 05:56:56 +0000 (07:56 +0200)
commitfeefc600ed052207a9cef1f331abf2eedea35a66
tree5938ea3d226a0254f0616a6b4e75dc1075d3f34d
parentd6b4a3d45a37e4a6f4cfa8dcf275c8af3a8a198f
luci-mod-rpc: rework authentication and session handling

 - Use the ubus session.login procedure to authenticate credentials
 - Fix testing of allowed usernames
 - Support authentication via sysauth cookie

Fixes #1300, #1700, #1711

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-rpc/luasrc/controller/rpc.lua