Skip to content

Commit f5d0700

Browse files
Fix issue (#668)
Co-authored-by: Markus Ofterdinger <markus.ofterdinger@sap.com>
1 parent ff57619 commit f5d0700

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

mta-multi-tenant.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ modules:
7777
keep-existing-routes: true
7878
properties:
7979
TENANT_HOST_PATTERN: ^(.*)-${default-uri} # testing only, use custom domain with wildcard for production
80+
CHECK_X_FORWARDED_HOST_IN_LOGIN_CALLBACK: true
8081
requires:
8182
- name: srv-api
8283
group: destinations
@@ -90,7 +91,7 @@ modules:
9091
- name: app-api
9192
properties:
9293
app-url: '${default-url}'
93-
app-domain: '${domain}'
94+
app-uri: '${default-uri}'
9495
# --------------------- RESOURCES ---------------------
9596
resources:
9697
# -----------------------------------------------------
@@ -104,7 +105,7 @@ resources:
104105
xsappname: bookshop-mt-${org}-${space}
105106
oauth2-configuration:
106107
redirect-uris:
107-
- https://*.~{app-api/app-domain}/**
108+
- https://*-~{app-api/app-uri}/** # be as explicit as possible, but keep the wildcard for the tenant subdomain
108109
requires:
109110
- name: app-api
110111
- name: bookshop-mt-service-manager

mta-single-tenant.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ modules:
5858
parameters:
5959
memory: 256M
6060
disk-quota: 512M
61+
properties:
62+
CHECK_X_FORWARDED_HOST_IN_LOGIN_CALLBACK: true
6163
requires:
6264
- name: srv-api
6365
group: destinations

0 commit comments

Comments
 (0)