From 55af6d3ef6cb50b249899892aedda6fde120a857 Mon Sep 17 00:00:00 2001 From: Tyagi-Sunny Date: Tue, 22 Oct 2024 15:21:53 +0530 Subject: [PATCH] feat(tenant-management): keycloak idp update keycloak idp update 47 --- .../src/providers/idp/idp-keycloak.provider.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/tenant-management-service/src/providers/idp/idp-keycloak.provider.ts b/services/tenant-management-service/src/providers/idp/idp-keycloak.provider.ts index 235e1fe..5ca12fe 100644 --- a/services/tenant-management-service/src/providers/idp/idp-keycloak.provider.ts +++ b/services/tenant-management-service/src/providers/idp/idp-keycloak.provider.ts @@ -58,6 +58,7 @@ export class KeycloakIdpProvider clientId, token, clientSecret, + tenant.key, ); // 4. Create a new admin user for the tenant @@ -154,10 +155,11 @@ export class KeycloakIdpProvider clientId: string, token: string, clientSecret: string, + key: string, ): Promise { const redirectUris = [ 'http://localhost:3000/*', // Example: Local development redirect URI - 'https://your-app.com/*', + `https://${key}.${process.env.DOMAIN_NAME}/authentication-service/*`, ]; await axios.post(