mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #1579] WIP: auth-user-header: Support for Authelia, etc. #1647
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#1647
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?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/1579
Author: @binwiederhier
Created: 1/30/2026
Status: 🔄 Open
Base:
main← Head:user-header📝 Commits (6)
46cb9f2User headerb67ffa4Auth logout URL, auth proxy9b1be51Remove auth_mode099cad0Sw stuff857f574Merge branch 'main' into user-header9e755a7This works📊 Changes
13 files changed (+281 additions, -41 deletions)
View changed files
📝
Dockerfile-build(+1 -0)📝
cmd/serve.go(+28 -9)📝
server/config.go(+4 -0)📝
server/server.go(+29 -0)📝
server/server.yml(+21 -0)📝
server/server_test.go(+96 -0)📝
server/types.go(+2 -0)📝
web/public/config.js(+2 -0)📝
web/public/sw.js(+38 -21)📝
web/src/app/AccountApi.js(+23 -1)📝
web/src/app/Session.js(+5 -1)📝
web/src/components/ActionBar.jsx(+23 -7)📝
web/src/components/Login.jsx(+9 -2)📄 Description
This implements #601. It partially works. I tested it with Authelia.
What works
auth-user-header(e.g.Remote-User) is passed from Authelia to ntfy, and ntfy then uses that header to pick the configured user in the backendauth-logout-urlis configured, which allows you to log out via AutheliaWhat doesn't work
ntfyIndexedDB is used instead ofntfy-$username), which leads to the wrong topics being shown in the sidebar. This can be easily reproduced when switching between users.Setup
ntfy/server.yml
Caddyfile
authelia/configuration.yml
docker-compose.yml
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.