From: Aki Tuomi Date: Thu, 28 Mar 2024 08:16:39 +0000 (+0200) Subject: auth: auth-worker - Log oauth2 validation error X-Git-Tag: 2.4.1~875 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76cc978202c4a53fb83eca84b647ed6e19af6308;p=thirdparty%2Fdovecot%2Fcore.git auth: auth-worker - Log oauth2 validation error --- 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); }