You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: collections/_documentation/saml.md
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,10 +191,28 @@ Your user account might be migrated to a new username, which is used during the
191
191
192
192
Please check the username in your user profile and use it for API authentication.
193
193
194
-
### Proxy and http vs https
194
+
### Proxy and URL mismatch
195
195
196
-
**Error:**
197
-
The response was received at `http://kimai-test.example.com/auth/saml/acs` instead of `https://kimai-test.example.com/auth/saml/acs`
196
+
**Error:**
197
+
"The response was received at `**http:**//kimai-test.example.com/auth/saml/acs` instead of `**https:**//kimai-test.example.com/auth/saml/acs`
198
+
199
+
or
200
+
201
+
"The response was received at `https://kimai-test.example.com**:8001**/auth/saml/acs` instead of `https://kimai-test.example.com/auth/saml/acs`"
202
+
203
+
**Solution:**
204
+
This could have multiple root causes:
205
+
206
+
1. You've configured the `baseurl` incorrectly. It should be `https://kimai-test.example.com/auth/saml/` (don't forget flush the cache!)
207
+
2. You've misconfigured the `TRUSTED_PROXIES` property. Make sure it's configured correctly.
208
+
3. Your proxy is not setting the `X-Forwarded-...` headers. Make sure your proxy is setting all the headers `X-Forwarded-Proto`, `X-Forwarded-Host`, `X-Forwarded-For` and `X-Forwarded-Port`
209
+
* e.g. the proxy Caddy does not set the `X-Forwarded-Port` header by default ([GitHub Discussion](https://github.com/kimai/kimai/discussions/5658#discussioncomment-14749244))
210
+
211
+
To make Caddy set the `X-Forwarded-Port` header add it with the `header_up` config in your Caddyfile as follows:
0 commit comments