Changeset

5196:6b63af56c8ac

mod_http_oauth2: Remove error message For a while I considered making this a required option but changed my mind and forgot to edit this.
author Kim Alvefur <zash@zash.se>
date Fri, 03 Mar 2023 22:03:50 +0100
parents 5195:b4932915e773
children 5197:164a9875935b
files mod_http_oauth2/mod_http_oauth2.lua
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua	Fri Mar 03 21:45:24 2023 +0100
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Fri Mar 03 22:03:50 2023 +0100
@@ -20,9 +20,7 @@
 local registration_options = module:get_option("oauth2_registration_options", { default_ttl = 60 * 60 * 24 * 90 });
 
 local jwt_sign, jwt_verify;
-if not registration_key then
-	module:log("error", "Missing required 'oauth2_registration_key', generate a strong key and configure it")
-else
+if registration_key then
 	-- Tie it to the host if global
 	registration_key = hashes.hmac_sha256(registration_key, module.host);
 	jwt_sign, jwt_verify = jwt.init(registration_algo, registration_key, registration_key, registration_options);