authMiddleware builds the auth gate, validating its configuration up front so a misconfigured binary refuses to start.
()
source not stored for this graph (policy: none)