ln_gateway::rpc::rpc_server

Function auth_middleware

source
async fn auth_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 always require a Bearer token to be supplied in the Authorization header.