feat: Add HTTP Schnorr signature authentication (Phase 1)#1849
Open
melvincarvalho wants to merge 1 commit intonodeSolidServer:mainfrom
Open
feat: Add HTTP Schnorr signature authentication (Phase 1)#1849melvincarvalho wants to merge 1 commit intonodeSolidServer:mainfrom
melvincarvalho wants to merge 1 commit intonodeSolidServer:mainfrom
Conversation
Add request-level authentication via BIP-340 Schnorr signatures using the NIP-98 HTTP Auth scheme (Authorization: Nostr <base64>). Verified identities resolve to did:nostr:<pubkey> URIs that work with existing Solid ACL rules as acl:agent values — no changes needed to the ACL layer. Tested against all 10 official http-schnorr-auth spec test vectors and verified live with read + write operations against a running NSS instance. Refs: nodeSolidServer#1845
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Authorization: Nostr <base64>)did:nostr:<pubkey>URIs that work with existing Solid ACL rules asacl:agentvalues — zero changes needed to the ACL layerChanges
lib/api/authn/webid-nostr.mjslib/api/authn/index.mjslib/api/authn/webid-oidc.mjsNostrauth headerslib/handlers/allow.mjspackage.json@noble/curves,@noble/hashes(audited, zero-dependency crypto by Paul Miller)test/unit/nostr-auth-test.mjsHow it works
A user with a
did:nostr:<pubkey>in an ACL file authenticates by sending:ACL:
Specs
This is Phase 1 (middleware only). No login UI, sessions, or browser flows.
Refs #1845