class JsMiscAuthTagger
- JsMiscAuthTagger
- FrameworkTagger
- Tagger
- Reference
- Object
Defined in:
tagger/framework_taggers/javascript/js_misc_auth.crConstant Summary
-
FASTIFY_PATTERNS =
[{/onRequest.*authenticate/, "Fastify onRequest authenticate hook"}, {/preHandler.*authenticate/, "Fastify preHandler authenticate"}, {/fastify\.authenticate/, "Fastify authenticate decorator"}, {/preValidation.*auth/i, "Fastify preValidation auth"}, {/@fastify\/jwt/, "Fastify JWT plugin"}, {/fastify-auth/, "Fastify auth plugin"}, {/fastify\.auth\s*\(/, "Fastify auth"}] -
Fastify auth patterns
-
GENERIC_NODE_AUTH =
[{/\brequireAuth\b/, "requireAuth middleware"}, {/\bisAuthenticated\b/, "isAuthenticated middleware"}, {/\bensureLoggedIn\b/, "ensureLoggedIn middleware"}, {/\bverifyToken\b/, "verifyToken middleware"}, {/\bcheckAuth\b/, "checkAuth middleware"}, {/\bauthMiddleware\b/, "authMiddleware"}] -
Generic Node.js auth middleware (shared across frameworks)
-
KOA_PATTERNS =
[{/koa-passport/, "Koa Passport middleware"}, {/koa-jwt/, "Koa JWT middleware"}, {/koa-session/, "Koa session middleware"}, {/passport\.authenticate\s*\(/, "Koa Passport authenticate"}, {/ctx\.state\.user/, "Koa ctx.state.user check"}, {/ctx\.isAuthenticated\s*\(\)/, "Koa isAuthenticated check"}] -
Koa auth patterns
-
MAX_ROUTE_SCOPE_LINES =
12 -
RESTIFY_PATTERNS =
[{/authorizationParser/, "Restify authorizationParser"}, {/req\.authorization/, "Restify req.authorization check"}, {/req\.username/, "Restify req.username check"}] -
Restify auth patterns