From cc0214e6a99162e95428c8a0953050e039d2ab9f Mon Sep 17 00:00:00 2001 From: Lucas O'Neil Date: Tue, 13 Aug 2024 17:50:37 -0700 Subject: [PATCH] Add proof name (#609) Signed-off-by: Lucas ONeil --- oidc-controller/api/verificationConfigs/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oidc-controller/api/verificationConfigs/models.py b/oidc-controller/api/verificationConfigs/models.py index 5f572a49..fd5e92ed 100644 --- a/oidc-controller/api/verificationConfigs/models.py +++ b/oidc-controller/api/verificationConfigs/models.py @@ -51,6 +51,8 @@ def generate_proof_request(self): "requested_attributes": {}, "requested_predicates": {}, } + if self.proof_request.name: + result["name"] = self.proof_request.name for i, req_attr in enumerate(self.proof_request.requested_attributes): label = req_attr.label or "req_attr_" + str(i) result["requested_attributes"][label] = req_attr.dict(exclude_none=True)