caddy-security plugin integration
Provides types, schemas, and builders for the caddy-security plugin, enabling type-safe authentication and authorization configurations.
import { buildAuthenticatorHandler, buildAuthorizationHandler, buildProtectedRoute, SecurityAuthenticatorHandlerSchema,} from "@accelerated-software-development/caddy-api-client/plugins/caddy-security";// Build handlers with validationconst authHandler = buildAuthenticatorHandler({ portalName: "myportal" });const authzHandler = buildAuthorizationHandler({ gatekeeperName: "mypolicy" });// Or build complete protected routesconst protectedRoute = buildProtectedRoute({ hosts: ["api.example.com"], gatekeeperName: "api-policy", dial: "localhost:3000",}); Copy
import { buildAuthenticatorHandler, buildAuthorizationHandler, buildProtectedRoute, SecurityAuthenticatorHandlerSchema,} from "@accelerated-software-development/caddy-api-client/plugins/caddy-security";// Build handlers with validationconst authHandler = buildAuthenticatorHandler({ portalName: "myportal" });const authzHandler = buildAuthorizationHandler({ gatekeeperName: "mypolicy" });// Or build complete protected routesconst protectedRoute = buildProtectedRoute({ hosts: ["api.example.com"], gatekeeperName: "api-policy", dial: "localhost:3000",});
caddy-security plugin integration
Provides types, schemas, and builders for the caddy-security plugin, enabling type-safe authentication and authorization configurations.
See
Example