diff --git a/osgi-bundles/bundles/logger/html-sse-demo.md b/osgi-bundles/bundles/logger/html-sse-demo.md index a092ff57..bab4d2e2 100644 --- a/osgi-bundles/bundles/logger/html-sse-demo.md +++ b/osgi-bundles/bundles/logger/html-sse-demo.md @@ -4,25 +4,28 @@ 2. Copy the JAR to `platform` plugin directory 3. Copy HTML content below to `` 4. Run this using `python3 -m http.server 3000 -d ` or `npx serve -l 3000 ` -5. Open `http://localhost:3000`, fill in the Base URL and your Kill Bill username/password, then click **Connect** +5. Open `http://localhost:3000`, fill in the Base URL and your Kill Bill username/password, optionally the tenant API key/secret and the filters, then click **Connect** -**Auth note:** this plugin's `/plugins/killbill-osgi-logger/**` endpoint now requires HTTP Basic Auth -(see `BasicAuthFilter`, registered on this plugin's Jooby app only — other plugins are unaffected). The -native browser `EventSource` API cannot set custom request headers (no way to send `Authorization: Basic -...`), so this demo bundles [EventSource/eventsource](https://github.com/EventSource/eventsource) (MIT -license, v5.1.2), a browser-compatible `EventSource` polyfill/replacement built on `fetch`, which supports -a `fetch` override — used here to inject the Basic Auth header per request. It's bundled as a single -minified IIFE (via `esbuild`, no build step required on your end) and pasted directly into the -`