@accelerated-software-development/caddy-api-client - v0.4.3
    Preparing search index...

    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 authentication handler with the authorizer provider. The provider config is based on the generated AuthzMiddleware.

    const handler = SecurityAuthorizationHandlerSchema.parse({
    handler: "authentication",
    providers: {
    authorizer: {
    gatekeeper_name: "mygatekeeper",
    },
    },
    });