[PR #148] [MERGED] Add authentification support for subscribing with CLI #1223

Closed
opened 2026-05-07 01:01:05 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/148
Author: @lrabane
Created: 2/17/2022
Status: Merged
Merged: 2/17/2022
Merged by: @binwiederhier

Base: mainHead: cli-auth


📝 Commits (3)

  • f4f5edb Add auth support for subscribing
  • b89c18e Add support for auth in client config
  • 7e1a71b Add docs for auth support with CLI

📊 Changes

5 files changed (+62 additions, -5 deletions)

View changed files

📝 client/client.yml (+4 -0)
📝 client/config.go (+5 -3)
📝 client/config_test.go (+6 -2)
📝 cmd/subscribe.go (+23 -0)
📝 docs/subscribe/cli.md (+24 -0)

📄 Description

I added -u username[:password] parameter to ntfy subscribe just like the one in ntfy publish.
I also added user and password key for each subscription in client.yml.

Close #147


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/binwiederhier/ntfy/pull/148 **Author:** [@lrabane](https://github.com/lrabane) **Created:** 2/17/2022 **Status:** ✅ Merged **Merged:** 2/17/2022 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `cli-auth` --- ### 📝 Commits (3) - [`f4f5edb`](https://github.com/binwiederhier/ntfy/commit/f4f5edb230d5b25896cf166144a4a221ea4f7ec4) Add auth support for subscribing - [`b89c18e`](https://github.com/binwiederhier/ntfy/commit/b89c18e83d8d159dbda9dd7d738eae0e694e0cc9) Add support for auth in client config - [`7e1a71b`](https://github.com/binwiederhier/ntfy/commit/7e1a71b6949b292a9d9c341281f359a2f969c2b7) Add docs for auth support with CLI ### 📊 Changes **5 files changed** (+62 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `client/client.yml` (+4 -0) 📝 `client/config.go` (+5 -3) 📝 `client/config_test.go` (+6 -2) 📝 `cmd/subscribe.go` (+23 -0) 📝 `docs/subscribe/cli.md` (+24 -0) </details> ### 📄 Description I added `-u username[:password]` parameter to `ntfy subscribe` just like the one in `ntfy publish`. I also added `user` and `password` key for each subscription in `client.yml`. Close #147 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:01:05 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1223
No description provided.