git clone from today (4/29/2024)
1. What is the issue? Please be detailed.
OIDC authentication issue after the redirect from the identity provider.
2. What steps can we take to reproduce this issue?
Fresh install of ODK. Running it behind Traefik. Central username/password authentication worked for my first account which I promoted to an admin. Login worked. I created a project.
I set up a new application in Authentik and enabled an OIDC provider. I supplied the redirect URL according to Central Docs.
I took the OIDC parameters and populated the environment variables as well.
On login, I click the Continue button and I'm sent to Authentik. There I have MFA set up and authentication works fine. Metrics even show the authn was successful. I'm then redirected back to ODK. Here I get this error message.
Something went wrong during login. Please contact your server administrator.
I'm using Firefox. It also failed with Chrome. The SAML Extension in Chrome didn't reveal any glaring errors, except the state property appeared to be empty . Shrug.
My SSO account email address matches the email address of my first user in ODK.
3. What have you tried to fix the issue?
Checked SAML Extension of Chrome and server logs.
Logs show 303 redirects on /v1/oidc/callback.
Logs show 404 not found on /v1/sessions/restore.
How can I enable a higher level of logging?
4. Upload any forms or screenshots you can share publicly below.
I have altered the code parameter below.
central-nginx-1 | 172.24.0.3 - - [29/Apr/2024:19:37:36 +0000] "GET /version.txt HTTP/1.1" 304 0 "https://domain.town/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "70.91.90.38"
central-nginx-1 | 172.24.0.3 - - [29/Apr/2024:19:37:40 +0000] "GET /v1/oidc/login HTTP/1.1" 307 805 "https://domain.town/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "70.91.90.38"
central-service-1 | ::ffff:172.23.0.7 - - [29/Apr/2024:19:37:40 +0000] "GET /v1/oidc/login HTTP/1.0" 307 805
central-nginx-1 | 172.24.0.3 - - [29/Apr/2024:19:37:42 +0000] "GET /v1/oidc/callback?code=f827d43237f74ba4b147ab507cc9809a&state= HTTP/1.1" 303 186 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "70.91.90.38"
central-nginx-1 | 172.24.0.3 - - [29/Apr/2024:19:37:42 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "70.91.90.38"
central-service-1 | ::ffff:172.23.0.7 - - [29/Apr/2024:19:37:42 +0000] "GET /v1/oidc/callback?code=f827d43237f74ba4b147ab507cc9809a&state= HTTP/1.0" 303 186
central-nginx-1 | 172.24.0.3 - - [29/Apr/2024:19:37:42 +0000] "GET /css/app.fef7c193.css HTTP/1.1" 304 0 "https://domain.town/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "70.91.90.38"
central-nginx-1 | 172.24.0.3 - - [29/Apr/2024:19:37:42 +0000] "GET /js/app.c08fa6fa.js HTTP/1.1" 304 0 "https://domain.town/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "70.91.90.38"
central-nginx-1 | 172.24.0.3 - - [29/Apr/2024:19:37:42 +0000] "GET /js/chunk-vendors.5190219a.js HTTP/1.1" 304 0 "https://domain.town/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "70.91.90.38"
central-nginx-1 | 172.24.0.3 - - [29/Apr/2024:19:37:42 +0000] "GET /css/component-analytics-introduction.4f6ad8ae.css HTTP/1.1" 304 0 "https://domain.town/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "70.91.90.38"
central-nginx-1 | 172.24.0.3 - - [29/Apr/2024:19:37:42 +0000] "GET /js/component-analytics-introduction.44c7f1f6.js HTTP/1.1" 304 0 "https://domain.town/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "70.91.90.38"
central-nginx-1 | 172.24.0.3 - - [29/Apr/2024:19:37:42 +0000] "GET /v1/sessions/restore HTTP/1.1" 404 76 "https://domain.town/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "70.91.90.38"
central-service-1 | ::ffff:172.23.0.7 - - [29/Apr/2024:19:37:42 +0000] "GET /v1/sessions/restore HTTP/1.0" 404 76
central-nginx-1 | 172.24.0.3 - - [29/Apr/2024:19:37:57 +0000] "GET /version.txt HTTP/1.1" 304 0 "https://domain.town/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "70.91.90.38"
I have both ODK and Authentik running as docker containers. I'm not sure that direct communication from ODK will reach Authentik.