Auth modules

Base authenticator class.

class zoe_api.auth.base.BaseAuthenticator

Base authenticator class.

full_auth(username: str, password: str) → Union[None, zoe_lib.state.user.User]

This method verifies the username and the password against one of the external auth sources.

zoe_api.auth.base.pam_authenticate(username, password)

Use the PAM module to authenticate. Zoe needs access to /etc/shadow.

Plain text file authentication module.

class zoe_api.auth.file.PlainTextAuthenticator(filename)

A basic plain text file authenticator.

auth(username, password)

Authenticate the user or raise an exception.

LDAP authentication module.

class zoe_api.auth.ldap.LDAPAuthenticator(conf, sasl)

A simple LDAP authenticator.

auth(username, password)

Authenticate the user or raise an exception.