[PR #285] add an example middleware to implement basic auth into asynqmon handler #1017

Open
opened 2026-03-15 21:47:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynqmon/pull/285
Author: @sangianpatrick
Created: 12/28/2022
Status: 🔄 Open

Base: masterHead: master


📝 Commits (5)

  • 8f637aa fix: add attribute crossorigin=use-credentials then browser like Chrome can pass the basic auth when requesting the manifest files
  • 7411753 Merge branch 'fix/ui'
  • d4d6f24 test: add example to run the asynqmon handler with basic auth
  • 5c400f3 Merge branch 'example/basic-auth-middleware'
  • 32e440b chore: add example to implement basic auth middleware into asynqmon handler

📊 Changes

3 files changed (+89 additions, -1 deletions)

View changed files

📝 README.md (+55 -0)
📝 example_test.go (+33 -0)
📝 ui/public/index.html (+1 -1)

📄 Description

Hi @hibiken, I just find out that there is no RBAC in asynqmon web. So I just try to give some example to prevent unauthenticated user to access by implementing basic auth

To use basic auth, It needs some changes in the UI, so put the attribute crossorigin=use-credentials so the manifest.json files can be loaded (in Chrome)

Screen Shot 2022-12-29 at 02 15 11

Looking forward for the review
Thanks 😊


🔄 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/hibiken/asynqmon/pull/285 **Author:** [@sangianpatrick](https://github.com/sangianpatrick) **Created:** 12/28/2022 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (5) - [`8f637aa`](https://github.com/hibiken/asynqmon/commit/8f637aabb4c0b634fcb14b6c68a3c1da82c27d4d) fix: add attribute crossorigin=use-credentials then browser like Chrome can pass the basic auth when requesting the manifest files - [`7411753`](https://github.com/hibiken/asynqmon/commit/7411753ffe8ad51de45e1d3e37ecb46c57441ad2) Merge branch 'fix/ui' - [`d4d6f24`](https://github.com/hibiken/asynqmon/commit/d4d6f24263649b5703a9e936a134a784c3cf0254) test: add example to run the asynqmon handler with basic auth - [`5c400f3`](https://github.com/hibiken/asynqmon/commit/5c400f31a12274b3e874023319c72ec97598795b) Merge branch 'example/basic-auth-middleware' - [`32e440b`](https://github.com/hibiken/asynqmon/commit/32e440bbff39422a15ae25627311a0efdf8b7a1c) chore: add example to implement basic auth middleware into asynqmon handler ### 📊 Changes **3 files changed** (+89 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+55 -0) 📝 `example_test.go` (+33 -0) 📝 `ui/public/index.html` (+1 -1) </details> ### 📄 Description Hi @hibiken, I just find out that there is no RBAC in asynqmon web. So I just try to give some example to prevent unauthenticated user to access by implementing basic auth To use basic auth, It needs some changes in the UI, so put the attribute crossorigin=use-credentials so the manifest.json files can be loaded (in Chrome) ![Screen Shot 2022-12-29 at 02 15 11](https://user-images.githubusercontent.com/28580023/209861588-09dc557f-0170-4b99-8cdd-c3179d863f52.png) Looking forward for the review Thanks 😊 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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/asynqmon#1017
No description provided.