async fn auth_after_config_middleware(
__arg0: Extension<Arc<Gateway>>,
request: Request,
next: Next,
) -> Result<impl IntoResponse, StatusCode>
Expand description
Middleware to authenticate an incoming request. Routes that are authenticated with this middleware are un-authenticated if the gateway has not yet been configured. After the gateway is configured, this middleware enforces that a Bearer token must be supplied in the Authorization header.