From 91d6f7706f2e70632000587913b83214d224fc34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Grzegorczyk?= Date: Tue, 27 Feb 2024 10:02:17 +0100 Subject: [PATCH] Closes #16 Make RSA from keycloak constant. --- .env.example | 6 ++++++ keycloak/imports/realms/realm-export.json | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/.env.example b/.env.example index 6c701c9..e092d12 100644 --- a/.env.example +++ b/.env.example @@ -29,6 +29,12 @@ KC_DB_PASSWORD= KSUMMARIZED_REALM_NAME=KnowledgeSummarized # The secret for the `ksummarized` client that is used by frontend application during authentication KSUMMARIZED_CLIENT_SECRET= +# The private key of the ksummarized realm +KSUMMARIZED_RSA_PRIVATE_KEY= +# The public key of the ksummarized realm +KSUMMARIZED_RSA_PUBLIC_KEY= +# The certificate of the ksummarized realm +KSUMMARIZED_RSA_CERTIFICATE= # The ClientId for the Google OAuth provider PROVIDER_GOOGLE_ID= # The ClientSecret for the Google OAuth provider diff --git a/keycloak/imports/realms/realm-export.json b/keycloak/imports/realms/realm-export.json index 36cb72b..a43ff27 100644 --- a/keycloak/imports/realms/realm-export.json +++ b/keycloak/imports/realms/realm-export.json @@ -1699,6 +1699,15 @@ "providerId": "rsa-generated", "subComponents": {}, "config": { + "privateKey": [ + "${KSUMMARIZED_RSA_PRIVATE_KEY}" + ], + "publicKey": [ + "${KSUMMARIZED_RSA_PUBLIC_KEY}" + ], + "certificate": [ + "${KSUMMARIZED_RSA_CERTIFICATE}" + ], "priority": [ "100" ]