From 9ac531244e68b1eae2f8f0794b3c91b248cfd2a7 Mon Sep 17 00:00:00 2001 From: Khanh Du <110228244+khanhduzz@users.noreply.github.com> Date: Tue, 8 Oct 2024 09:47:47 +0700 Subject: [PATCH] config keycloak (#52) --- identity/realm-export.json | 22 +++++++++---------- .../matcha/theme/matcha/login/login.ftl | 2 +- sell-bff/src/main/resources/application.yaml | 12 +++++----- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/identity/realm-export.json b/identity/realm-export.json index cdb7251..f6aea93 100644 --- a/identity/realm-export.json +++ b/identity/realm-export.json @@ -798,7 +798,7 @@ "clientAuthenticatorType": "client-secret", "secret": "**********", "redirectUris": [ - "localhost:8181/*" + "http://localhost:8181/*" ], "webOrigins": [ "" @@ -851,18 +851,18 @@ "alwaysDisplayInConsole": false, "clientAuthenticatorType": "client-secret", "redirectUris": [ - "localhost:8084/*", - "localhost:8083/*", - "localhost:8082/*", - "localhost:8081/*", - "localhost:8090/*" + "http://localhost:8081/*", + "http://localhost:8083/*", + "http://localhost:8082/*", + "http://localhost:8090/*", + "http://localhost:8084/*" ], "webOrigins": [ - "localhost:8090", - "localhost:8082", - "localhost:8081", - "localhost:8084", - "localhost:8083" + "http://localhost:8084", + "http://localhost:8083", + "http://localhost:8090", + "http://localhost:8082", + "http://localhost:8081" ], "notBefore": 0, "bearerOnly": false, diff --git a/identity/themes/matcha/theme/matcha/login/login.ftl b/identity/themes/matcha/theme/matcha/login/login.ftl index f8930ac..b55ddf2 100644 --- a/identity/themes/matcha/theme/matcha/login/login.ftl +++ b/identity/themes/matcha/theme/matcha/login/login.ftl @@ -26,7 +26,7 @@
-

Welcome to matcha store

+

Welcome to matcha

<#if realm.password>
diff --git a/sell-bff/src/main/resources/application.yaml b/sell-bff/src/main/resources/application.yaml index 8e3c783..a5b48d5 100644 --- a/sell-bff/src/main/resources/application.yaml +++ b/sell-bff/src/main/resources/application.yaml @@ -13,12 +13,12 @@ spring: client: provider: keycloak: - issuer-uri: http://identity/realms/Matcha + issuer-uri: http://localhost:8080/realms/Matcha registration: api-client: provider: keycloak - client-id: backoffice-bff - client-secret: u03jjXKol43F9UBn7HEgpqadBbzuHqjW #gitleaks:allow + client-id: sell-bff + client-secret: L1ISNRVOUfQONER3aTs1OPaXGg0EZMTe #gitleaks:allow scope: openid, profile, email, roles management: tracing: @@ -44,10 +44,10 @@ spring: gateway: routes: # Changes for your local development should not be committed - - id: api_servicename_local - uri: http://localhost:8085 + - id: api_product_local + uri: http://localhost:8081 predicates: - - Path=/api/servicename/** + - Path=/api/product/** filters: - RewritePath=/api/(?.*), /$\{segment} - TokenRelay=