Skip to content

alexwright/prosody-mod-auth-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

mod_auth_internal_jwt

A Prosody SASL module to authenticate users using a JWT (JSON Wet Token).

Example Config

VirtualHost "host.tld"
    authentication = "internal_jwt"
    jwt_signing_secret = "something-decently-secret-with-entropy"
    ssl = {
        -- Setup TLS Ok?
        -- Otherwise the token would be clear text and that's bad
    }

The token

{
    "jid": "[email protected]"
}

Todo

  • Nonces to prevent replay attacks
  • Timestamps to prevent old tokens authenticating
  • Expiry timestamp for the same reason
  • Per user secrets stored in the manager?
  • More than one secret?

About

Authentication XMPP users with JWTs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages