Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
Update validation of credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Sep 28, 2023
1 parent 9469bf1 commit 3ed7bdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/CompanyXHumanResources/DiplomaVerifyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ public class DiplomaVerifyService
/// </summary>
public readonly List<SelectListItem> TrustedUniversities = new List<SelectListItem>
{
// 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<SelectListItem> TrustedCredentials = new List<SelectListItem>
{
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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public VerifyStudentDiplomaModel(DiplomaVerifyService diplomaVerifyService)

public void OnGet()
{
Universities = _diplomaVerifyService.TrustedUniversities;
Universities = _diplomaVerifyService.TrustedCredentials;
}

public async Task OnPostAsync()
Expand Down
1 change: 0 additions & 1 deletion src/University/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" asp-area="" asp-page="/CreateNewDiploma">Create new diploma (template)</a></li>
<li><a class="dropdown-item" asp-area="" asp-page="/CreateUniversityIssuer">Create University Issuer (wallet)</a></li>

</ul>
</li>

Expand Down

0 comments on commit 3ed7bdf

Please sign in to comment.