Skip to content

Commit

Permalink
Test relaying authz token to downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
flawmop committed Jan 20, 2024
1 parent 2e7c619 commit 11916e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions k8s/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
ports:
- containerPort: 9000
env:
- name: ROUTE_DEFAULT
value: http://welcome-svc
- name: KEYCLOAK_ISSUER_URI
value: http://portal-keycloak/realms/Portal
- name: ROUTE_DEFAULT
value: http://welcome-svc
12 changes: 10 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,19 @@ spring:
default-filters:
- SaveSession
routes:
- id: default-route
uri: ${ROUTE_DEFAULT:http://localhost:9001}/
- id: 0-test
filters:
- TokenRelay=
order: 0
predicates:
- Method=GET
- Path=/test/token
uri: ${ROUTE_DEFAULT:http://localhost:9001}/
- id: 100-default
order: 100
predicates:
- Path=/, /css/**, /js/**, /img/**, /icon/**
uri: ${ROUTE_DEFAULT:http://localhost:9001}/
data:
redis:
connect-timeout: 2s
Expand Down

0 comments on commit 11916e5

Please sign in to comment.