-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathapplication.yml
More file actions
40 lines (35 loc) · 1.12 KB
/
application.yml
File metadata and controls
40 lines (35 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
spring:
application:
name: travel-gateway
# TODO Configure token forwarding
cloud:
gateway:
routes:
# this route can be used to see how/if the token is send to the backend
# i.e. using curl -H "Cookie: <your_cookie>" http://localhost:8080/httpbin/test
- id: httpbin
uri: https://httpbin.org
predicates:
- Path=/httpbin/**
filters:
- StripPrefix=1
- id: flights-service
uri: http://127.0.0.1:8081/flights
predicates:
- Path=/flights/**
- id: hotels-service
uri: http://127.0.0.1:8082/hotels
predicates:
- Path=/hotels/**
# TODO Configure authentication through Keycloak
security:
oauth2:
client:
provider:
keycloak:
# issuer-uri: TODO: what is the base-url of the keycloak part we want to use?
# user-name-attribute: TODO: find out the name of the claim best-suited as username in the JWT???
registration:
keycloak:
client-id: spring-cloud-gateway-client
client-secret: <your_secret>