Skip to content

Commit

Permalink
config keycloak (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduzz authored Oct 8, 2024
1 parent d39c1e0 commit 9ac5312
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
22 changes: 11 additions & 11 deletions identity/realm-export.json
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@
"clientAuthenticatorType": "client-secret",
"secret": "**********",
"redirectUris": [
"localhost:8181/*"
"http://localhost:8181/*"
],
"webOrigins": [
""
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion identity/themes/matcha/theme/matcha/login/login.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<div class="box-container">
<div>
<p class="application-name">Welcome to matcha store</p>
<p class="application-name">Welcome to matcha</p>
</div>
<#if realm.password>
<div>
Expand Down
12 changes: 6 additions & 6 deletions sell-bff/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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>.*), /$\{segment}
- TokenRelay=
Expand Down

0 comments on commit 9ac5312

Please sign in to comment.