From 76cc978202c4a53fb83eca84b647ed6e19af6308 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 28 Mar 2024 10:16:39 +0200 Subject: [PATCH] auth: auth-worker - Log oauth2 validation error --- src/auth/auth-worker-server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/auth/auth-worker-server.c b/src/auth/auth-worker-server.c index 36025a306a..410d146b27 100644 --- a/src/auth/auth-worker-server.c +++ b/src/auth/auth-worker-server.c @@ -791,6 +791,10 @@ static void auth_worker_handle_token_continue(struct db_oauth2_request *db_reque pool_unref(&db_request->pool); if (error != NULL) error = t_strconcat("oauth2 failed: ", error, NULL); + if (result == PASSDB_RESULT_INTERNAL_FAILURE) + e_error(auth_request->mech_event, "%s", error); + else if (result != PASSDB_RESULT_OK) + e_info(auth_request->mech_event, "%s", error); auth_worker_request_finished(cmd, error); } -- 2.47.3