From 4890cccff156a75647f497638d4fe42097564949 Mon Sep 17 00:00:00 2001 From: Tobias Stadler <28538704+devtobi@users.noreply.github.com> Date: Wed, 11 Dec 2024 13:25:17 +0100 Subject: [PATCH] :wrench: Updated local configuration to include sso route and new frontend route (#322) --- .../src/main/resources/application-local.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/refarch-gateway/src/main/resources/application-local.yml b/refarch-gateway/src/main/resources/application-local.yml index 56a8cd76..2a7a368d 100644 --- a/refarch-gateway/src/main/resources/application-local.yml +++ b/refarch-gateway/src/main/resources/application-local.yml @@ -4,6 +4,12 @@ spring: cloud: gateway: routes: + - id: sso + uri: http://localhost:8100/ + predicates: + - "Path=/api/sso/userinfo" + filters: + - RewritePath=/api/sso/userinfo, /auth/realms/local_realm/protocol/openid-connect/userinfo - id: backend uri: http://localhost:39146/ predicates: @@ -12,7 +18,7 @@ spring: - RewritePath=/api/backend-service/(?.*), /$\{urlsegments} - "RemoveResponseHeader=WWW-Authenticate" - id: frontend - uri: http://localhost:4173/ + uri: http://localhost:8081/ predicates: - "Path=/**" security: @@ -29,4 +35,4 @@ spring: provider: sso client-id: local client-secret: client_secret - scope: profile, openid + scope: profile, openid \ No newline at end of file