From 4f3a53f5d1371dbefb304eac412ec2af6ea74190 Mon Sep 17 00:00:00 2001 From: vasileios Date: Thu, 19 Dec 2024 15:10:46 +0100 Subject: [PATCH] [#4825] Log prefill retrieve empty only for the used authentication flow --- src/openforms/prefill/sources.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/openforms/prefill/sources.py b/src/openforms/prefill/sources.py index fd947c7780..fdf70b33c2 100644 --- a/src/openforms/prefill/sources.py +++ b/src/openforms/prefill/sources.py @@ -70,7 +70,12 @@ def invoke_plugin( if values: logevent.prefill_retrieve_success(submission, plugin, fields) else: - logevent.prefill_retrieve_empty(submission, plugin, fields) + if ( + plugin.requires_auth is None + or (auth_info := getattr(submission, "auth_info", None)) + and auth_info.attribute == plugin.requires_auth + ): + logevent.prefill_retrieve_empty(submission, plugin, fields) return fields, values invoke_plugin_args = []