Skip to content

Commit

Permalink
Use a configuration for the wallet ecosystem search
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Sep 28, 2023
1 parent 0e817a8 commit a7f33f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/TrinsicV2WebWallet/GenerateProofService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,14 @@ public class GenerateProofService
private readonly TrinsicService _trinsicService;
private readonly IConfiguration _configuration;

/// <summary>
/// This would be some public list of university diploma schemes
/// Don't think this will work because not every uni will used the same SSI, id-tech systems, standards
/// </summary>
public readonly List<SelectListItem> Universities = new List<SelectListItem>
{
new SelectListItem { Text ="University SSI Schweiz", Value= "peaceful-booth-zrpufxfp6l3c"}
};
public List<SelectListItem> Universities = new();

public GenerateProofService(TrinsicService trinsicService, IConfiguration configuration)
{
_trinsicService = trinsicService;
_configuration = configuration;

Universities = _configuration.GetSection("Universities")!.Get<List<SelectListItem>>()!;
}

public async Task<List<SelectListItem>> GetItemsInWallet(string userAuthToken)
Expand Down
6 changes: 6 additions & 0 deletions src/TrinsicV2WebWallet/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,11 @@
}
]
},
"Universities": [
{
"Text": "University SSI Schweiz",
"Value": "peaceful-booth-zrpufxfp6l3c"
}
],
"AllowedHosts": "*"
}

0 comments on commit a7f33f2

Please sign in to comment.