# HG changeset patch # User Kim Alvefur # Date 1777731215 -7200 # Node ID 1216f6befbe74363811f32d021fbf33a7b7e2257 # Parent 05d66fe6b289d9ddc4836db3298764c0c9929340 mod_auth_oauth_external: Raise error when configured without at least one endpoint Module does not work if both are unset. diff -r 05d66fe6b289 -r 1216f6befbe7 mod_auth_oauth_external/mod_auth_oauth_external.lua --- a/mod_auth_oauth_external/mod_auth_oauth_external.lua Sat May 02 16:10:48 2026 +0200 +++ b/mod_auth_oauth_external/mod_auth_oauth_external.lua Sat May 02 16:13:35 2026 +0200 @@ -32,6 +32,9 @@ } --]] +assert(validation_endpoint or token_endpoint, + "One or both of 'oauth_external_validation_endpoint' and 'oauth_external_token_endpoint' must be configured"); + local accounts = module:open_store("accounts"); local host = module.host;