pureexe/dsh-authen-notice

Turns the bare 401 that DSH web returns without a valid session into a styled, mobile-friendly authentication page.

When DSH web is opened without a valid session or launch token, the server answers with a bare plain-text 401 body — correct, but unreadable on a phone and unlike the rest of the product. This plugin wraps the authorizeIndex guard with a recording proxy and rewrites only the unauthenticated response into an HTML notice that follows the Harness design language in light and dark, with matching HEAD content-length and the original cache-control: no-store kept. Everything else passes through byte-identical: the 303 launch-token mint with its signed session cookie, authenticated pages, /connect and errors. The wrap registers as an effect and restores the original function on teardown, so removing the plugin leaves no trace.

Web UI Enhancements ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add github:pureexe/dsh-authen-notice

The README's install line for the web profile; it can also be installed as a bundle through the Plugin Manager in the Web GUI. The bundle is a single-file ESM plugin with no dependencies — it links into the profile's node_modules and activates immediately on a running server via hot reload, or at the next boot.

Compatibility

For the web profile, or any profile that boots the web app. The page shows the verbatim sentence the server would otherwise send, so the security message does not change — only its presentation. The README records that the replay mirrors the original writeHead argument form exactly, which matters because the web profile's compression middleware parses argument positions differently for writeHead(status, headers) and writeHead(status, message, headers).

Details

Alternatives

urzeye/dsh-outline · BrambleXu/dsh-annotate · fuhefei/dsh-sentinel

More plugins in Web UI Enhancements

Browse more in Web UI Enhancements

Guides for Web UI Enhancements plugins