Expand description
Structs§
- ApiToken
Revoked - Fired after an API personal access token is revoked.
- Auth
- Strategy constructors:
Auth::bearer,Auth::api_key, [Auth::jwt_hs256], … - Auth
Builder - Builder before
AuthBuilder::verifybinds the user type. - AuthMw
- Strategy middleware: extract credential → verify →
req.set(U). - Authenticated
- Marker that a principal id was established (session and/or strategy).
- Credentials
- Extracted credential string.
- Extract
- Ordered chain of extractors — first match wins.
- Passport
- Passport.js-style authentication manager.
Enums§
- Source
- Where a credential was found.
Traits§
- AuthExt
- Prefer
PassportExt— kept as a deprecated alias name for docs only. Passport request helpers (login/logout/isAuthenticated/user). - Passport
Ext - Passport request helpers (
login/logout/isAuthenticated/user).
Functions§
- local_
strategy - Proper local strategy (JSON email/password) — body consumed once.
- passport_
serialize - After setting the user on
req, run configuredserialize_userand store the id.