Authorization handler using Caddy's authentication handler with the authorizer provider
The authorize directive in Caddyfile creates a standard Caddy authentication handler with the caddy-security authorizer provider configured.
authorize
authentication
authorizer
Module ID: http.handlers.authentication (Caddy core) Provider Module ID: http.authentication.providers.authorizer (caddy-security)
http.handlers.authentication
http.authentication.providers.authorizer
const handler: SecurityAuthorizationHandler = { handler: "authentication", providers: { authorizer: { gatekeeper_name: "mygatekeeper", route_matcher: "*", }, },}; Copy
const handler: SecurityAuthorizationHandler = { handler: "authentication", providers: { authorizer: { gatekeeper_name: "mygatekeeper", route_matcher: "*", }, },};
Authentication providers - for authorization, use the authorizer provider
Authorization handler using Caddy's authentication handler with the authorizer provider
The
authorizedirective in Caddyfile creates a standard Caddyauthenticationhandler with the caddy-securityauthorizerprovider configured.Module ID:
http.handlers.authentication(Caddy core) Provider Module ID:http.authentication.providers.authorizer(caddy-security)Example