RustAuthTagger
Inherits FrameworkTagger < FileHelper < Tagger < Reference < Object
Constants
ACTIX_AUTH_PATTERNS = [/HttpAuthentication/, /BearerAuth/, /BasicAuth/, /Identity/]
Actix-Web auth middleware/extractor patterns
AXUM_EXTRACTOR_PATTERNS = [/Extension<.*(?:Auth|Claims|Token|User|Session).*>/, /TypedHeader<.*(?:Authorization|Bearer).*>/]
Axum extractor patterns
GUARD_ATTRIBUTE_PATTERNS = [/#\[guard\s*=\s*"(\w+)"\]/, /#\[.*guard.*\]/i]
Guard/middleware attribute patterns
GUARD_TYPE_PATTERNS = [/\b(?:Auth|Authenticated|AuthGuard|AuthUser|AuthToken)\b/, /\b(?:ApiKey|ApiToken|BearerToken|AccessToken)\b/, /\b(?:Claims|JwtClaims|TokenClaims|JwtToken)\b/, /\b(?:AdminUser|AdminGuard|Admin)\b/, /\b(?:UserGuard|UserToken|CurrentUser|LoggedInUser)\b/, /\b(?:Session|SessionUser|CookieAuth)\b/, /\b(?:RoleGuard|Permission|Authorized)\b/]
Rocket request guard types (in function signatures)
MIDDLEWARE_LAYER_PATTERNS = [/\.wrap\s*\(\s*(\w*[Aa]uth\w*)/, /\.wrap\s*\(\s*HttpAuthentication/, /\.layer\s*\(\s*(\w*[Aa]uth\w*)/, /\.layer\s*\(\s*middleware::from_fn\s*\(\s*(\w*auth\w*)/i]
Middleware layer patterns (in Router/App setup)
Constructors
Class methods
target_techs
SourceInstance methods
The per-endpoint shape: look at each endpoint, tag in place, hand the
array back. Fifteen framework taggers carried a byte-identical copy of
this; they now declare only check_endpoint.
Not every framework tagger fits it — eleven still override perform
because they need a pre-scan over the project (config files, middleware
registration) before the per-endpoint pass, or they group endpoints
first. Those keep their own.