MCPcopy Create free account
hub / github.com/cosdata/cosdata / AuthenticationMiddleware

Class AuthenticationMiddleware

src/api/auth/authentication_middleware.rs:23–23  ·  view source on GitHub ↗

There are two steps in middleware processing. 1. Middleware initialization, middleware factory gets called with next service in chain as parameter. 2. Middleware's call method gets called with normal request.

Source from the content-addressed store, hash-verified

21// next service in chain as parameter.
22// 2. Middleware's call method gets called with normal request.
23pub(crate) struct AuthenticationMiddleware(pub Arc<DashMap<String, SessionDetails>>);
24
25// Middleware factory is `Transform` trait
26// `S` - type of the next service

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected