mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1522] Login Not Working With Authelia #1073
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1073
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @darkpixelftw on GitHub (Dec 24, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1522
🐞 Describe the bug
When trying to login to the ntfy (https://github.com/binwiederhier/ntfy - v2.15.0) webapp, the login fails no matter what method the user was created.
I finally tracked this down to authelia, it seems authelia is interpreting the credentials being sent as an Authelia user login attempt, see logs below
Steps to replicate:
Setup ntfy docker container, connected to authelia via a traefik middleware.
Setup ntfy user via file or commands (i tried both and both had this same error)
attempt to login through the ntfy webapp: https://ntfy.example.com/login
recieve error: Login failed: Invalid username or password
Remove authelia middleware from ntfy container
Login now works
💻 Components impacted
Webapp
💡 Screenshots and/or logs
From authelia logs
{"error":"failed to validate Authorization header with basic scheme: failed to validate the credentials of user 'REDACTED' parsed from the Authorization header: authentication failed. Cause: error occurred performing bind: LDAP Result Code 49 "Invalid Credentials": ","level":"error","method":"GET","msg":"Error occurred while attempting to authenticate a request","path":"/api/authz/forward-auth","remote_ip":"REDACTED","time":"REDACTED"}
🔮 Additional context
ntfy logs are empty - presumebly because the credentials are being intercepted by authelia, which doesn't recognise it and sends a signal saying it's not correct?
This appears to be an error with how the username/password are being sent to the web app. Not seen this happen with any other service I've set up with authelia so I'm assuming this is something to do with how ntfy sends the credentials to the server from my pc using the webapp rather than some non-standard behaviour with authelia.
Is there a possibility of sending the credentials in a different way to avoid this problem? or at least adding a warning to the documentation that this occurs.
@wunter8 commented on GitHub (Dec 25, 2025):
Putting an auth service (like Authelia, Authentik, etc.) in front of ntfy is not supported right now
@llaumgui commented on GitHub (Jan 9, 2026):
It's not the concern of this feature: https://github.com/binwiederhier/ntfy/pull/812/files#diff-fb0c696bc104f613e5b601c77c2eba916dd636d5948c9b5c8e85ea92ee5b07e6R55 ?
@wunter8 commented on GitHub (Jan 9, 2026):
@llaumgui that is the purpose of that feature. But that hasn't been added to the project yet, and that code hasn't been worked on since 2023. So, it is not supported right now.
There's a chance it'll be supported in the future. But at least with that specific pull request, there are some outstanding questions about the architecture/design of the feature.
@binwiederhier commented on GitHub (Feb 1, 2026):
This is a dup of #601 with a WIP PR in #1579