Skip to content

Commit

Permalink
Add proof name (#609)
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <[email protected]>
  • Loading branch information
loneil authored Aug 14, 2024
1 parent 288ae30 commit cc0214e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oidc-controller/api/verificationConfigs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cc0214e

Please sign in to comment.