PerlAuthTagger
Inherits FrameworkTagger < FileHelper < Tagger < Reference < Object
Identifies authentication / authorization guards in Perl web apps.
Dancer2 leans on Dancer2::Plugin::Auth::Extensible, which guards routes either inline on the declaration:
get '/admin' => require_role Admin => sub { ... }; get '/me' => require_login sub { ... };
or globally through a hook before that calls logged_in_user /
redirect. Catalyst and Mojolicious use handler-body checks
($c->user_exists, $c->assert_user_roles, $c->require_login,
$self->is_user_authenticated). This tagger surfaces all of them as a
single auth tag so reviewers can spot the unprotected routes.
Constants
Checks that appear inside the handler body (or a nearby helper).
Keywords that make a hook before / Catalyst sub auto block an
application-wide guard covering every route in the file.
Inline route wrappers from Dancer2::Plugin::Auth::Extensible. These
sit between the path and the sub { ... } on the route declaration.
Class methods
Instance 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.