[PR #240] [MERGED] Adds basic HTTP authentication #268

Closed
opened 2026-02-26 05:31:47 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/NarrativeScience-old/log.io/pull/240
Author: @msmathers
Created: 5/22/2020
Status: Merged
Merged: 5/22/2020
Merged by: @msmathers

Base: masterHead: feature/basic-auth


📝 Commits (3)

📊 Changes

8 files changed (+74 additions, -44 deletions)

View changed files

📝 README.md (+8 -2)
inputs/file/config.json (+0 -36)
📝 inputs/file/src/index.ts (+14 -1)
📝 server/README.md (+8 -2)
📝 server/package-lock.json (+16 -0)
📝 server/package.json (+1 -0)
📝 server/src/server.ts (+20 -2)
📝 server/src/types.ts (+7 -1)

📄 Description

To enable basic HTTP authentication, add the following keys to ~/.log.io/server.json:

"basicAuth": {
  "realm": "abc123xyz",
  "users": {
    "msmathers": "secretpassword1"
  }
}

realm should be a custom value that you generate.

Also removes the default config.json in the log.io-file-input package, which contained example file paths that won't be valid on other machines. The file input will now throw an error if it is started before a configuration file is placed in ~/.log.io/inputs/file.json.


🔄 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/NarrativeScience-old/log.io/pull/240 **Author:** [@msmathers](https://github.com/msmathers) **Created:** 5/22/2020 **Status:** ✅ Merged **Merged:** 5/22/2020 **Merged by:** [@msmathers](https://github.com/msmathers) **Base:** `master` ← **Head:** `feature/basic-auth` --- ### 📝 Commits (3) - [`d9fb1a5`](https://github.com/NarrativeScience-old/log.io/commit/d9fb1a5ff0c966b2f1b8c0fb4c4080c4a7fe03a6) Adds basic HTTP authentication - [`3ba5a7e`](https://github.com/NarrativeScience-old/log.io/commit/3ba5a7ef6e476e12ed39438e6dfbf7b0ee9268aa) Remove default config for file input - [`c926eb1`](https://github.com/NarrativeScience-old/log.io/commit/c926eb1793a5ec5b3ef85f668a808de9b1e49e9e) cleanup ### 📊 Changes **8 files changed** (+74 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+8 -2) ➖ `inputs/file/config.json` (+0 -36) 📝 `inputs/file/src/index.ts` (+14 -1) 📝 `server/README.md` (+8 -2) 📝 `server/package-lock.json` (+16 -0) 📝 `server/package.json` (+1 -0) 📝 `server/src/server.ts` (+20 -2) 📝 `server/src/types.ts` (+7 -1) </details> ### 📄 Description To enable basic HTTP authentication, add the following keys to `~/.log.io/server.json`: ```json "basicAuth": { "realm": "abc123xyz", "users": { "msmathers": "secretpassword1" } } ``` `realm` should be a custom value that you generate. Also removes the default config.json in the `log.io-file-input` package, which contained example file paths that won't be valid on other machines. The file input will now throw an error if it is started before a configuration file is placed in `~/.log.io/inputs/file.json`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 05:31:47 +03: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/log.io-NarrativeScience-old#268
No description provided.