From 05022ca32586d87f98c09b0bd5d95638d3afdf47 Mon Sep 17 00:00:00 2001 From: Gavin Jaeger-Freeborn Date: Thu, 14 Nov 2024 16:07:28 -0800 Subject: [PATCH] Add multilingual support Signed-off-by: Gavin Jaeger-Freeborn --- oidc-controller/api/templates/verified_credentials.html | 2 +- oidc-controller/api/verificationConfigs/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oidc-controller/api/templates/verified_credentials.html b/oidc-controller/api/templates/verified_credentials.html index 96c552ef..212cc3c1 100644 --- a/oidc-controller/api/templates/verified_credentials.html +++ b/oidc-controller/api/templates/verified_credentials.html @@ -323,7 +323,7 @@
const mobileDevice = ref( getBrowser() === "Android" || getBrowser() === "iOS" ? true : false ); - const claims = ref(JSON.parse('{{claims|tojson}}')); + const claims = ref(JSON.parse('{{claims|tojson}}')['en']); return { mobileDevice, diff --git a/oidc-controller/api/verificationConfigs/models.py b/oidc-controller/api/verificationConfigs/models.py index da8549db..076e9560 100644 --- a/oidc-controller/api/verificationConfigs/models.py +++ b/oidc-controller/api/verificationConfigs/models.py @@ -41,7 +41,7 @@ class VerificationProofRequest(BaseModel): class MetaData(BaseModel): title: str | None = Field(default=None) - claims: list[str] | None = Field(default=None) + claims: dict[str, list[str]] | None = Field(default=None) class VerificationConfigBase(BaseModel):