]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: auth-worker - Log oauth2 validation error
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 28 Mar 2024 08:16:39 +0000 (10:16 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:39:59 +0000 (10:39 +0200)
src/auth/auth-worker-server.c

index 36025a306a9ce64842e1f5c09f617734b6efac1b..410d146b27fba0a784075a9e5a3461f9577f6363 100644 (file)
@@ -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);
 }