send all credential to verifier
This commit is contained in:
parent
09ab17a00f
commit
674f136342
|
@ -319,3 +319,7 @@ class OAuth2VPToken(models.Model):
|
||||||
"verifiableCredential", [{}]
|
"verifiableCredential", [{}]
|
||||||
)[-1].get("credentialSubject")
|
)[-1].get("credentialSubject")
|
||||||
return json.dumps(self.user_info, indent=2)
|
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)
|
||||||
|
|
|
@ -219,7 +219,7 @@ class VerifyView(View):
|
||||||
return email_message
|
return email_message
|
||||||
|
|
||||||
def get_verification(self):
|
def get_verification(self):
|
||||||
return self.vp_token.get_user_info()
|
return self.vp_token.get_user_info_all()
|
||||||
|
|
||||||
class AllowCodeView(View):
|
class AllowCodeView(View):
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue