From e569ebc6e355144e3280d6386eb3cdcff0b95f0e Mon Sep 17 00:00:00 2001 From: Ingrid Kamga Date: Wed, 2 Oct 2024 11:54:20 +0100 Subject: [PATCH] Deploy from BSK demo branch --- .env | 5 +++-- client-oid4vc.json | 6 +++--- generate_user_key.sh | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.env b/.env index f150bbf..7a0f682 100644 --- a/.env +++ b/.env @@ -7,7 +7,8 @@ TOOLS_DIR=$TARGET_DIR/tools # Dev dir where to clone keycloak # KC_TARGET_BRANCH=main -KC_TARGET_BRANCH=DEPLOY-20240725 +# KC_TARGET_BRANCH=DEPLOY-20240725 +KC_TARGET_BRANCH=DEPLOY-BSK-DEMO-86 KC_OID4VCI="keycloak_${KC_TARGET_BRANCH}" # Ensure all sensitive data like passwords and keys are passed through environment variables or secure stores. @@ -55,7 +56,7 @@ KEYCLOAK_ADMIN_ADDR=https://localhost:8443 # KEYCLOAK_EXTERNAL_ADDR=https://keycloak.solutions.adorsys.com # KEYCLOAK_EXTERNAL_ADDR=http://localhost:8080 KEYCLOAK_EXTERNAL_ADDR=https://keycloak-demo.solutions.adorsys.com - +# KEYCLOAK_EXTERNAL_ADDR=https://localhost:8443 ISSUER_DID="${KEYCLOAK_EXTERNAL_ADDR}/realms/master" diff --git a/client-oid4vc.json b/client-oid4vc.json index 13aad92..4a6c55e 100644 --- a/client-oid4vc.json +++ b/client-oid4vc.json @@ -23,8 +23,8 @@ "vc.SteuerberaterCredential.cryptographic_binding_methods_supported": "jwk", "vc.SteuerberaterCredential.credential_signing_alg_values_supported": "ES256", "vc.SteuerberaterCredential.proof_types_supported":"{\"jwt\":{\"proof_signing_alg_values_supported\":[\"ES256\"]}}", - "vc.SteuerberaterCredential.display.0": "{\"locale\":\"de-DE\",\"name\":\"Steuerberaterkammer Westfalen-Lippe\",\"logo\":\"https:\/\/adorsys-my.sharepoint.com\/personal\/ingrid_kamga_adorsys_com\/Documents\/World\/stbk-wl-icon.png\",\"background_color\":\"#d3dce0\",\"text_color\":\"#000000\"}", - "vc.SteuerberaterCredential.display.1": "{\"locale\":\"en-US\",\"name\":\"Steuerberaterkammer Westfalen-Lippe\",\"logo\":\"https:\/\/adorsys-my.sharepoint.com\/personal\/ingrid_kamga_adorsys_com\/Documents\/World\/stbk-wl-icon.png\",\"background_color\":\"#d3dce0\",\"text_color\":\"#000000\"}", + "vc.SteuerberaterCredential.display.0": "{\"locale\":\"de-DE\",\"name\":\"Steuerberaterkammer Westfalen-Lippe\",\"logo\":{\"uri\":\"https:\/\/kci-portal.solutions.adorsys.com\/credential_files\/stbk-wl-icon.png\",\"alt_text\":\"STBK\"},\"background_image\":{\"uri\":\"https:\/\/kci-portal.solutions.adorsys.com\/credential_files\/stbk-wl.png\",\"alt_text\":\"Mitgliedsausweis\"},\"background_image_svg\":{\"uri\":\"https:\/\/kci-portal.solutions.adorsys.com\/credential_files\/stbk-wl.svg\",\"alt_text\":\"Mitgliedsausweis\"},\"background_color\":\"#d3dce0\",\"text_color\":\"#000000\"}", + "vc.SteuerberaterCredential.display.1": "{\"locale\":\"en-US\",\"name\":\"Steuerberaterkammer Westfalen-Lippe\",\"logo\":{\"uri\":\"https:\/\/kci-portal.solutions.adorsys.com\/credential_files\/stbk-wl-icon.png\",\"alt_text\":\"STBK\"},\"background_image\":{\"uri\":\"https:\/\/kci-portal.solutions.adorsys.com\/credential_files\/stbk-wl.png\",\"alt_text\":\"Member Card\"},\"background_image_svg\":{\"uri\":\"https:\/\/kci-portal.solutions.adorsys.com\/credential_files\/stbk-wl.svg\",\"alt_text\":\"Member Card\"},\"background_color\":\"#d3dce0\",\"text_color\":\"#000000\"}", "vc.SteuerberaterCredential.claims": "{\"academic_title\":{\"display\":[{\"locale\":\"de-DE\",\"name\":\"Titel\"},{\"locale\":\"en-US\",\"name\":\"Title\"},{\"locale\":\"fr-FR\",\"name\":\"Titre\"}]},\"family_name\":{\"display\":[{\"locale\":\"de-DE\",\"name\":\"Name\"},{\"locale\":\"en-US\",\"name\":\"Surname\"},{\"locale\":\"fr-FR\",\"name\":\"Nom\"}]},\"given_name\":{\"display\":[{\"locale\":\"de-DE\",\"name\":\"Vornamen\"},{\"locale\":\"en-US\",\"name\":\"Given names\"},{\"locale\":\"fr-FR\",\"name\":\"Pr\u00E8nomes\"}]},\"date_of_birth\":{\"display\":[{\"locale\":\"de-DE\",\"name\":\"Geburtstag\"},{\"locale\":\"en-US\",\"name\":\"Date of birth\"},{\"locale\":\"fr-FR\",\"name\":\"Date de naissance\"}]},\"member_id\":{\"display\":[{\"locale\":\"de-DE\",\"name\":\"Mitgliedsnummer\"},{\"locale\":\"en-US\",\"name\":\"Member ID\"},{\"locale\":\"fr-FR\",\"name\":\"Member ID\"}]},\"address_country\":{\"display\":[{\"locale\":\"de-DE\",\"name\":\"Staat\"},{\"locale\":\"en-US\",\"name\":\"Country\"},{\"locale\":\"fr-FR\",\"name\":\"Pays\"}]},\"address_locality\":{\"display\":[{\"locale\":\"de-DE\",\"name\":\"Wohnort Stadt\"},{\"locale\":\"en-US\",\"name\":\"City\"},{\"locale\":\"fr-FR\",\"name\":\"Ville\"}]},\"address_postal_code\":{\"display\":[{\"locale\":\"de-DE\",\"name\":\"Wohnnort PLZ\"},{\"locale\":\"en-US\",\"name\":\"Postcode\"},{\"locale\":\"fr-FR\",\"name\":\"Code Postal\"}]},\"address_street_address\":{\"display\":[{\"locale\":\"de-DE\",\"name\":\"Wohnnort Stra\u00DFe\"},{\"locale\":\"en-US\",\"name\":\"Street\"},{\"locale\":\"fr-FR\",\"name\":\"Rue\"}]}}" }, "protocolMappers": [ @@ -34,7 +34,7 @@ "protocolMapper": "oid4vc-static-claim-mapper", "config": { "subjectProperty": "academic_title", - "staticValue": "\u0020", + "staticValue": "N/A", "supportedCredentialTypes": "stbk_westfalen_lippe" } }, diff --git a/generate_user_key.sh b/generate_user_key.sh index 8bd320c..8bfa8f9 100755 --- a/generate_user_key.sh +++ b/generate_user_key.sh @@ -9,7 +9,7 @@ if [ ! -f "$FRANCIS_KEYSTORE_FILE" ]; then keytool \ -genkeypair \ -keyalg EC \ - -keysize 256 \ + -groupname secp256r1 \ -keystore "$FRANCIS_KEYSTORE_FILE" \ -storepass "$FRANCIS_KEYSTORE_PASSWORD" \ -alias "$FRANCIS_KEYSTORE_ECDSA_KEY_ALIAS" \