Expand description
Session verification and the tower authentication middleware.
Structs§
Functions§
- auth
- Middleware that enforces authentication, for any tower stack — axum, tonic, or hyper.
- logout
- End the user’s access everywhere with a server-side call to Stackure, clear the app’s session cookie and redirect to Stackure.
- mcp
- Middleware that protects an MCP route, for any tower stack — axum, tonic, or hyper.
- user_
from_ request - The user attached by
authormcp, orNoneif the request was not authenticated. In axum you can also take anExtension<User>directly. - verify
- Verify a request without returning an error.