|
|
@ -4,8 +4,10 @@ from mailu.internal import internal, nginx
|
|
|
|
import flask
|
|
|
|
import flask
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@internal.route("/nginx")
|
|
|
|
@internal.route("/auth/email")
|
|
|
|
def nginx_authentication():
|
|
|
|
def nginx_authentication():
|
|
|
|
|
|
|
|
""" Main authentication endpoint for Nginx email server
|
|
|
|
|
|
|
|
"""
|
|
|
|
headers = nginx.handle_authentication(flask.request.headers)
|
|
|
|
headers = nginx.handle_authentication(flask.request.headers)
|
|
|
|
response = flask.Response()
|
|
|
|
response = flask.Response()
|
|
|
|
for key, value in headers.items():
|
|
|
|
for key, value in headers.items():
|
|
|
|