Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication bridge — converts a Basic nostr:<token> request header into a NIP-98 verification call, mirroring the JSS behaviour where a Basic auth line whose username is nostr and whose password is a base64-encoded NIP-98 event is accepted by the git handler (PARITY row 69).

The JSS server layers this bridge on top of the normal NIP-98 Authorization: Nostr <b64> scheme so that off-the-shelf HTTP-Basic Git clients (e.g. the stock git CLI with a credential helper) can still push/pull against a Nostr-authenticated pod.

Structs§

BasicNostrExtractor
The canonical JSS-parity authoriser.

Enums§

AuthError
Auth failures exposed to the HTTP surface.

Traits§

GitAuth
Pluggable authoriser invoked by the service on write operations.