From 3ed7bdf4b9725a318012a14647e3aa632929af00 Mon Sep 17 00:00:00 2001 From: damienbod Date: Thu, 28 Sep 2023 08:13:39 +0200 Subject: [PATCH] Update validation of credentials --- src/CompanyXHumanResources/DiplomaVerifyService.cs | 8 +++----- .../Pages/VerifyStudentDiploma.cshtml.cs | 2 +- src/University/Pages/Shared/_Layout.cshtml | 1 - 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/CompanyXHumanResources/DiplomaVerifyService.cs b/src/CompanyXHumanResources/DiplomaVerifyService.cs index 2f21ddc..59a600e 100644 --- a/src/CompanyXHumanResources/DiplomaVerifyService.cs +++ b/src/CompanyXHumanResources/DiplomaVerifyService.cs @@ -16,15 +16,13 @@ public class DiplomaVerifyService /// public readonly List TrustedUniversities = new List { - // todo switch to uni and not diploma vc - new SelectListItem { Text ="University SSI Schweiz SSI FH", Value= "https://schema.trinsic.cloud/peaceful-booth-zrpufxfp6l3c/diploma-credential-for-swiss-self-sovereign-identity-ssi"}, - new SelectListItem { Text ="University SSI Schweiz FH Basel", Value= "https://schema.trinsic.cloud/peaceful-booth-zrpufxfp6l3c/fh-basel-ux-engineer"} + new SelectListItem { Text ="University SSI Schweiz SSI FH", Value="did:web:peaceful-booth-zrpufxfp6l3c.connect.trinsic.cloud:zV9t25XybyBV7qEB1v6u9Bb"} }; public readonly List TrustedCredentials = new List { - new SelectListItem { Text ="University SSI Schweiz SSI FH", Value= "https://schema.trinsic.cloud/peaceful-booth-zrpufxfp6l3c/diploma-credential-for-swiss-self-sovereign-identity-ssi"}, - new SelectListItem { Text ="University SSI Schweiz FH Basel", Value= "https://schema.trinsic.cloud/peaceful-booth-zrpufxfp6l3c/fh-basel-ux-engineer"} + new SelectListItem { Text ="University SSI Schweiz SSI", Value= "https://schema.trinsic.cloud/peaceful-booth-zrpufxfp6l3c/diploma-credential-for-swiss-self-sovereign-identity-ssi"}, + new SelectListItem { Text ="University FH Basel, Schweiz", Value= "https://schema.trinsic.cloud/peaceful-booth-zrpufxfp6l3c/fh-basel-ux-engineer"} }; public DiplomaVerifyService(TrinsicService trinsicService, IConfiguration configuration) diff --git a/src/CompanyXHumanResources/Pages/VerifyStudentDiploma.cshtml.cs b/src/CompanyXHumanResources/Pages/VerifyStudentDiploma.cshtml.cs index e5d9f51..3cb9507 100644 --- a/src/CompanyXHumanResources/Pages/VerifyStudentDiploma.cshtml.cs +++ b/src/CompanyXHumanResources/Pages/VerifyStudentDiploma.cshtml.cs @@ -25,7 +25,7 @@ public VerifyStudentDiplomaModel(DiplomaVerifyService diplomaVerifyService) public void OnGet() { - Universities = _diplomaVerifyService.TrustedUniversities; + Universities = _diplomaVerifyService.TrustedCredentials; } public async Task OnPostAsync() diff --git a/src/University/Pages/Shared/_Layout.cshtml b/src/University/Pages/Shared/_Layout.cshtml index 79413a4..356567e 100644 --- a/src/University/Pages/Shared/_Layout.cshtml +++ b/src/University/Pages/Shared/_Layout.cshtml @@ -28,7 +28,6 @@
  • Create new diploma (template)
  • Create University Issuer (wallet)
  • -