Variable SecurityAuthorizationHandlerSchemaConst
SecurityAuthorizationHandlerSchema: ZodObject<
{
handler: ZodLiteral<"authentication">;
providers: ZodObject<
{
authorizer: ZodObject<
{
gatekeeper_name: ZodOptional<ZodString>;
route_matcher: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{ gatekeeper_name?: string; route_matcher?: string },
{ gatekeeper_name?: string; route_matcher?: string },
>;
},
"strip",
ZodTypeAny,
{ authorizer: { gatekeeper_name?: string; route_matcher?: string } },
{ authorizer: { gatekeeper_name?: string; route_matcher?: string } },
>;
},
"strip",
ZodTypeAny,
{
handler: "authentication";
providers: {
authorizer: { gatekeeper_name?: string; route_matcher?: string };
};
},
{
handler: "authentication";
providers: {
authorizer: { gatekeeper_name?: string; route_matcher?: string };
};
},
> = ...
Authorization handler schema
Uses Caddy's built-in
authenticationhandler with theauthorizerprovider. The provider config is based on the generated AuthzMiddleware.