send all credential to verifier

This commit is contained in:
Cayo Puigdefabregas 2024-03-15 14:13:35 +01:00
parent 09ab17a00f
commit 674f136342
2 changed files with 5 additions and 1 deletions

View File

@ -319,3 +319,7 @@ class OAuth2VPToken(models.Model):
"verifiableCredential", [{}]
)[-1].get("credentialSubject")
return json.dumps(self.user_info, indent=2)
def get_user_info_all(self):
tk = json.loads(self.vp_token)
return json.dumps(tk, indent=2)

View File

@ -219,7 +219,7 @@ class VerifyView(View):
return email_message
def get_verification(self):
return self.vp_token.get_user_info()
return self.vp_token.get_user_info_all()
class AllowCodeView(View):
def get(self, request, *args, **kwargs):