Skip to content

Mastodon database backend for Prosody's mod_auth_custom_http

License

Notifications You must be signed in to change notification settings

nadiamoe/prosody-http-auth-mastodon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prosody-http-auth-mastodon

This tiny server implements the interface defined by Prosody's mod_auth_custom_http, and checks authentication data against a Postgres database which is assumed to be the one that Mastodon uses. Effectively, this allows XMPP users to log in with their mastodon username/password.

Integration tests are included, and the schema is assumed to be that of Mastodon v4.3.3, or compatible with it.

Usage

Run the container, which can be configured with the following env vars:

  • DB_URL (required): URL to connect to the postgres database. Something like: postgresql://user:password@host/mastodon_production?sslmode=disable.
    • DB_URL can contain references to other environment variables, which will be expanded: postgresql://${PG_USER}:${PG_PASSWORD}@host/mastodon_production?sslmode=disable.
    • You must include ?sslmode=disable if your postgres installation is not using TLS.

About

Mastodon database backend for Prosody's mod_auth_custom_http

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages