class GoAuthTagger
- GoAuthTagger
- FrameworkTagger
- Tagger
- Reference
- Object
Defined in:
tagger/framework_taggers/go/go_auth.crConstant Summary
-
INLINE_AUTH_MIDDLEWARE =
[/\b[Aa]uth(?:enticate|orize|Required|Middleware|Handler|Guard|Check)\b/, /\b[Rr]equire[Aa]uth\b/, /\b[Ii]s[Aa]uth(?:enticated)?\b/, /\b[Ll]ogin[Rr]equired\b/, /\b[Vv]erify[Tt]oken\b/, /\b[Cc]heck[Tt]oken\b/, /\b[Jj][Ww][Tt](?:Auth|Middleware|Verify|Check|Guard)?\b/, /\b[Aa]dmin[Oo]nly\b/, /\b[Rr]ole[Cc]heck\b/, /\b[Pp]ermission[Cc]heck\b/] -
Auth middleware in route definition (inline middleware)
-
JWT_PATTERNS =
[/echojwt\.\w+/, /jwtauth\.\w+/, /jwt\.New\s*\(/, /jwt\.Auth\s*\(/, /middleware\.JWT\s*\(/, /middleware\.JWTWithConfig\s*\(/] -
JWT library patterns
-
USE_AUTH_MIDDLEWARE_PATTERNS =
[/\.Use\s*\(\s*(\w*[Aa]uth\w*)/, /\.Use\s*\(\s*(\w*JWT\w*)/i, /\.Use\s*\(\s*(\w*[Tt]oken\w*)/, /\.Use\s*\(\s*(\w*[Ss]ession\w*)/, /\.Use\s*\(\s*(\w*[Pp]ermission\w*)/, /\.Use\s*\(\s*(\w*[Ll]ogin\w*)/, /\.Use\s*\(\s*(\w*RBAC\w*)/i, /\.Use\s*\(\s*(\w*ACL\w*)/i] -
Middleware usage patterns in route groups
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