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"}, {/\benchureLoggedIn\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
-
RESTIFY_PATTERNS =
[{/authorizationParser/, "Restify authorizationParser"}, {/req\.authorization/, "Restify req.authorization check"}, {/req\.username/, "Restify req.username check"}] -
Restify auth patterns
Constructors
Class Method Summary
Instance Method Summary
Instance methods inherited from class FrameworkTagger
read_file(path : String) : String | Nil
read_file,
read_source_context(endpoint : Endpoint) : Array(SourceContext)
read_source_context
Constructor methods inherited from class FrameworkTagger
new(options : Hash(String, YAML::Any))
new
Class methods inherited from class FrameworkTagger
target_techs : Array(String)
target_techs
Instance methods inherited from module FileHelper
all_files : Array(String)
all_files,
get_files_by_extension(extension : String) : Array(String)
get_files_by_extension,
get_files_by_prefix(prefix : String) : Array(String)
get_files_by_prefix,
get_files_by_prefix_and_extension(prefix : String, extension : String) : Array(String)
get_files_by_prefix_and_extension,
get_public_dir_files(base_path : String, folder : String) : Array(String)
get_public_dir_files,
get_public_files(base_path : String) : Array(String)
get_public_files,
populate_channel_with_files(channel : Channel(String))
populate_channel_with_files,
populate_channel_with_filtered_files(channel : Channel(String), extension : String)populate_channel_with_filtered_files(channel : Channel(String), extensions : Array(String)) populate_channel_with_filtered_files