mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #602] [CLOSED] Draft: user-header authentication #1345
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#1345
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/602
Author: @ngerstle
Created: 2/4/2023
Status: ❌ Closed
Base:
main← Head:ng/user-header📝 Commits (3)
a69f9c5add user-header config value524f9c3add skeleton code to server.go795a8e0add prevalidateduser call to auth module- should be refactored📊 Changes
4 files changed (+25 additions, -4 deletions)
View changed files
📝
auth/auth.go(+3 -0)📝
auth/auth_sqlite.go(+6 -0)📝
server/config.go(+2 -0)📝
server/server.go(+14 -4)📄 Description
This begins to sketch out a hacky way to implement https://github.com/binwiederhier/ntfy/issues/601.
Not being particularly familiar with go, or the ntfy code base, I haven't tried to compile or run this code.
I'm not particulary comfortable with the interface between
authandserver- unless basic auth support is removed fromauth, I'd suggest moving code for credential extraction from the request to theauther, whether that's using basic auth or a configured header, and select which auther to use during server setup.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.