OIDC (authentik) leads to log entries of “unauthorized” users
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- api, authentication, backend
Direzione di ricerca
Reproduce the regression on Gotify 3.1.1 and compare it with 3.0.0, starting with the WebUI requests to /current/user and /auth/oidc/callback. Inspect the OIDC authentication flow around these entry points and the reported authentik configuration. Done means opening the login interface no longer creates an unauthorized-user log entry and OIDC login succeeds.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Issue description
I get Error #01: you need to provide a valid access token or user credentials to access this api in my log even if I just open the external URL Gotify server instace. This also happens when I try the same with the internal IP address of the Gotify server. So no other user actions happened, except that the website was accessed.
I have OIDC enabled. As identity provider I use authentik (2026.5.6).
When I try to login I get Flow does not apply to current user. But I haven't set any bindings in authentik for gotify what could prevent the access.
Previously (v3.0.0) it worked and everything was set up according to the official authentik documentation.
Can the issue be reproduced with the latest available release? (y/n)
Yes [3.1.1], issue appears since 3.1.0
Which one is the environment gotify server is running in?
- Docker
- Linux machine
- Windows machine
Docker startup command or config file here (please mask sensitive information)
Do you have an reverse proxy installed in front of gotify server? (Please select None if the problem can be reproduced without the presense of a reverse proxy)
- None
- Nginx
- Apache
- Caddy
I selected none since the issue also appears without the presense of the reverse proxy.
Reverse proxy configuration (please mask sensitive information)
On which client do you experience problems? (Select as many as you can see)
- WebUI
- gotify-cli
- Android Client
- 3rd-party API call (Please include your code)
What did you do?
I just entered my Gotify server instace URL and can see the login interface.
What did you expect to see?
The login interface.
What did you see instead? (Include screenshots, android logcat/request dumps if possible)
2026-09-19T11:19:33+02:00 WRN HTTP duration="81µs" errors="Error #01: you need to provide a valid access token or user credentials to access this api" ip=x.x.x.x method=GET path=/current/user status=401
2026-09-19T11:19:33+02:00 INF HTTP duration="213.9µs" ip=x.x.x.x method=GET path=/static/roboto-latin-400-normal-BqEyEoaF.woff2 status=200
2026-09-19T11:19:33+02:00 INF HTTP duration="31µs" ip=x.x.x.x method=GET path=/static/favicon-32x32.png status=200
2026-09-19T11:19:33+02:00 INF HTTP duration="125.2µs" ip=x.x.x.x method=GET path=/static/favicon-196x196.png status=200
2026-09-19T11:19:57+02:00 INF HTTP duration="375.5µs" ip=x.x.x.x method=GET path=/stream?token=[masked] status=200
2026-09-19T11:19:57+02:00 INF HTTP duration="599.1µs" ip=x.x.x.x method=GET path=/message?limit=10 status=200
gotify-server-env
x.x.x.x = reverse proxy IP
GOTIFY_DATABASE_CONNECTION="data/gotify.db"
GOTIFY_DATABASE_DIALECT="sqlite3"
GOTIFY_DEFAULTUSER_NAME="NAME"
GOTIFY_DEFAULTUSER_PASS="PASS"
GOTIFY_PASSSTRENGTH=10
GOTIFY_PLUGINSDIR="data/plugins"
GOTIFY_SERVER_LISTENADDR="127.0.0.1"
GOTIFY_SERVER_PORT=5000
GOTIFY_SERVER_SSL_ENABLED="false"
GOTIFY_SERVER_SSL_LETSENCRYPT_ACCEPTTOS="false"
GOTIFY_SERVER_SSL_LETSENCRYPT_CACHE="data/certs"
GOTIFY_SERVER_SSL_LETSENCRYPT_ENABLED="false"
GOTIFY_SERVER_SSL_LISTENADDR=""
GOTIFY_SERVER_SSL_PORT=443
GOTIFY_SERVER_SSL_REDIRECTTOHTTPS="false"
GOTIFY_SERVER_TRUSTEDPROXIES="127.0.0.1,x.x.x.x"
GOTIFY_UPLOADEDIMAGESDIR="data/images"
GOTIFY_OIDC_ENABLED=true
GOTIFY_OIDC_ISSUER=https://sso.authentikURL.com/application/o/gotify/
GOTIFY_OIDC_CLIENTID=CLIENTID
GOTIFY_OIDC_CLIENTSECRET=CLIENTSECRET
GOTIFY_OIDC_REDIRECTURL=https://push.gotifyURL.com/auth/oidc/callback
GOTIFY_OIDC_AUTOREGISTER=true
GOTIFY_OIDC_USERNAMECLAIM=preferred_username
GOTIFY_OIDC_LINK_BY_USERNAME=true
GOTIFY_OIDC_SCOPES=openid,profile,email
Authentik provider settings
- Lingua principale
- Go
- Stelle
- 16k
- Fork
- 891
- Merge medio
- 1g 13h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di gotify/server
-
Feature request: built-in MCP endpoint for sending messages from AI agentsForse già presa @RedwindA l’ha presa 4 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
gotify/server#1059 · 3 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Session elevation duration is unbounded, and large values silently overflow to a past timestampForse già presa @piyush295 l’ha presa 11 giorni fa. Apertaa:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
gotify/server#1051 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
a:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
gotify/server#1047 · 6 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
a:feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 2 giorni
-
OIDC: Disallow changing admin permissions for oidc users when OIDC group mapping is configuredApertaa:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di gotify/server
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
duplication
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openvibely/openvibely#1443 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
keyxmakerx/Chronicle#1179 ·
I maintainer di solito rispondono entro 1 giorno
-
raised-by:worker
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
medici-finance/assay#2486 ·
I maintainer di solito rispondono entro 1 giorno
-
area/testing kind/bug triage/needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
cozystack/cozystack#4841 · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni