evennia.web.utils.middleware

class evennia.web.utils.middleware.OriginIpMiddleware(get_response)[source]

Bases: object

This Django Middleware simply sets the request.origin_ip attribute to what is respected by the Evennia Server, taking into account settings.UPSTREAM_IPS.

__init__(get_response)[source]

Initialize self. See help(type(self)) for accurate signature.

class evennia.web.utils.middleware.SharedLoginMiddleware(get_response)[source]

Bases: object

Handle the shared login between website and webclient.

__init__(get_response)[source]

Initialize self. See help(type(self)) for accurate signature.

classmethod make_shared_login(request)[source]