Skip to content

scastillo/prosody-mod_auth_json_http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Prosody mod_auth_json_http

A prosody authentication module with a rest-like api as backend.

Notes

  • Only tested on 0.8
  • Only tested with node, connect, passport local strategy as backend
  • Assumes a response 200 OK if auth succeed
  • Once it get more tested I promise uploading this to prosody modules repo

Config

  • Put the module lua file on a place discoverable by prosody (/usr/lib/prosody/modules on Debian like systems)

  • To setup the http auth url use this in prosody.cfg.lua:

    authentication = "json_http"
    auth_json_http_url = "http://192.168.50.1:3000/api/v1/auth/local"

About

A prosody authentication module with a rest-like api as backend.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages