@mindbaz/zonemta-auth-keycloak

2.0.0 • Public • Published

zonemta-auth-keycloak

Authentication with Keycloak for ZoneMTA. Install this to performs SMTP authentication with Keycloak

Setup

Add this as a dependency for your ZoneMTA app

npm install @mindbaz/zonemta-auth-keycloak --save

Configure

The module uses wild-config, so there are two toml configuration files to manage

Plugin conf

Add a configuration entry in the "plugins" section of your ZoneMTA app

Example here.

First enable plugin :

# auth-keycloak.toml
["modules/@mindbaz/zonemta-auth-keycloak"]
enabled="receiver"
interfaces=["feeder"]

Then set keycloak configuration for this plugin :

keycloak_url="http://example.org:8080"
auth_force_realm = false
auth_force_realms = true # Optional : to force a realm on current zmta instance

Wild-config

ZoneMTA uses the following file for wild-config : /path/to/zone-mta/config/zonemta.toml

[auth_keycloak]
realms = [ 'random-realm', 'another-realm' ]

License

The GNU General Public License 3 (details)

Support version

Keycloak : >=20

/@mindbaz/zonemta-auth-keycloak/

    Package Sidebar

    Install

    npm i @mindbaz/zonemta-auth-keycloak

    Weekly Downloads

    2

    Version

    2.0.0

    License

    GPL-3.0-or-later

    Unpacked Size

    60.8 kB

    Total Files

    10

    Last publish

    Collaborators

    • schwarzion
    • vhenon