class

HonoAuthTagger

Inherits FrameworkTagger < FileHelper < Tagger < Reference < Object

Constants

CONTEXT_USER_PATTERNS = [/c\.var\.(user|payload|auth|session)/, /c\.get\s*\(\s*['"](user|payload|auth|session)/]

Context user extraction after auth (secondary signal)

CUSTOM_AUTH_NAMES = [/\bauthMiddleware\b/i, /\bauthGuard\b/i, /\brequireAuth\b/i, /\bverifyToken\b/i, /\bcheckAuth\b/i, /\bensureAuth\b/i, /\bwithAuth\b/i]

Custom or third-party auth middleware names commonly used with Hono

HONO_AUTH_MIDDLEWARE = [{/\bbearerAuth\s*\(/, "Hono bearerAuth middleware"}, {/\bjwt\s*\(/, "Hono jwt middleware"}, {/\bbasicAuth\s*\(/, "Hono basicAuth middleware"}]

Hono official auth middleware

Constructors

new(options : Hash(String, YAML::Any))
Source

Class methods

target_techs
Source

Instance methods

perform(endpoints : Array(Endpoint)) : Array(Endpoint)

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.

Source