diff --git a/idhub/models.py b/idhub/models.py index 3758183..4121691 100644 --- a/idhub/models.py +++ b/idhub/models.py @@ -666,6 +666,7 @@ class VerificableCredential(models.Model): ) context = { + 'id_credential': self.id, 'vc_id': url_id, 'issuer_did': self.issuer_did.did, 'subject_did': self.subject_did and self.subject_did.did or '', diff --git a/idhub/templates/credentials/course-credential.json b/idhub/templates/credentials/course-credential.json index d4a97cb..6ba46ef 100644 --- a/idhub/templates/credentials/course-credential.json +++ b/idhub/templates/credentials/course-credential.json @@ -58,6 +58,11 @@ "dateOfAssessment": "{{ dateOfAssessment }}", "evidenceAssessment": "{{ evidenceAssessment }}" }, + "credentialStatus": { + "id": "{{ issuer_did }}", + "type": "RevocationBitmap2022", + "revocationBitmapIndex": "{{ id_credential }}" + }, "credentialSchema": { "id": "https://idhub.pangea.org/vc_schemas/course-credential.json", "type": "FullJsonSchemaValidator2021" diff --git a/idhub/templates/credentials/e-operator-claim.json b/idhub/templates/credentials/e-operator-claim.json index 1b85bbe..902a940 100644 --- a/idhub/templates/credentials/e-operator-claim.json +++ b/idhub/templates/credentials/e-operator-claim.json @@ -55,6 +55,11 @@ "role": "{{ role }}", "email": "{{ email }}" }, + "credentialStatus": { + "id": "{{ issuer_did }}", + "type": "RevocationBitmap2022", + "revocationBitmapIndex": "{{ id_credential }}" + }, "credentialSchema": { "id": "https://idhub.pangea.org/vc_schemas/federation-membership.json", "type": "FullJsonSchemaValidator2021" diff --git a/idhub/templates/credentials/federation-membership.json b/idhub/templates/credentials/federation-membership.json index e060b55..ca35e70 100644 --- a/idhub/templates/credentials/federation-membership.json +++ b/idhub/templates/credentials/federation-membership.json @@ -66,6 +66,11 @@ "evidence": "{{ evidence }}", "certificationDate": "{{ certificationDate }}" }, + "credentialStatus": { + "id": "{{ issuer_did }}", + "type": "RevocationBitmap2022", + "revocationBitmapIndex": "{{ id_credential }}" + }, "credentialSchema": { "id": "https://idhub.pangea.org/vc_schemas/federation-membership.json", "type": "FullJsonSchemaValidator2021" diff --git a/idhub/templates/credentials/financial-vulnerability.json b/idhub/templates/credentials/financial-vulnerability.json index 5b38937..859b161 100644 --- a/idhub/templates/credentials/financial-vulnerability.json +++ b/idhub/templates/credentials/financial-vulnerability.json @@ -62,6 +62,11 @@ "connectivityOptionList": "{{ connectivityOptionList }}", "assessmentDate": "{{ assessmentDate }}" }, + "credentialStatus": { + "id": "{{ issuer_did }}", + "type": "RevocationBitmap2022", + "revocationBitmapIndex": "{{ id_credential }}" + }, "credentialSchema": { "id": "https://idhub.pangea.org/vc_schemas/financial-vulnerability.json", "type": "FullJsonSchemaValidator2021" diff --git a/idhub/templates/credentials/membership-card.json b/idhub/templates/credentials/membership-card.json index cd10786..d227bdc 100644 --- a/idhub/templates/credentials/membership-card.json +++ b/idhub/templates/credentials/membership-card.json @@ -61,6 +61,11 @@ "affiliatedSince": "{{ affiliatedSince }}", "affiliatedUntil": "{{ affiliatedUntil }}" }, + "credentialStatus": { + "id": "{{ issuer_did }}", + "type": "RevocationBitmap2022", + "revocationBitmapIndex": "{{ id_credential }}" + }, "credentialSchema": { "id": "https://idhub.pangea.org/vc_schemas/membership-card.json", "type": "FullJsonSchemaValidator2021"