vllm.entrypoints.serve.middleware.authenticate
¶
Classes:
-
AuthenticationMiddleware–Pure ASGI middleware that authenticates each request by checking
AuthenticationMiddleware
¶
Pure ASGI middleware that authenticates each request by checking if the Authorization Bearer token exists and equals anyof "{api_key}".
Note
There are two cases in which authentication is skipped:
- The HTTP method is OPTIONS.
- The request path doesn't start with GUARDED_PREFIX (e.g. /health).