Why Nostr? What is Njump?
2023-04-27 22:08:51

nohea on Nostr: Thoughts on NIP-98 HTTP Auth proposal: It's interesting reading this proposal, coming ...

Thoughts on NIP-98 HTTP Auth proposal:

It's interesting reading this proposal, coming from some slight use of JWTs with shared secrets on servers.
JWTs typically have an auth provider authenticating a user and also validating "claims" (authorization roles).
The JWT is passed in the Authorization Bearer _ HTTP header along with the actual resource request.
The server can then validate identity and claims via symmetrical shared secret, or alternatively via jwk_url for asymmetric auth.

Clearly for Nostr we want to auth users asymmetrically. It is technically possible for Nostr clients to generate their own JWT for id. To validate permissions to a resource, an organization would have to run their own auth service, use Nostr to validate id, but add claims to the JWT.

Wrapping the auth+httprequest in a Nostr event adds extra overhead. Clearly it works, but figuring out auth via the existing JWT methods will allow for more services to use Nostr auth without customization.

https://github.com/nostr-protocol/nips/pull/469
Author Public Key
npub1xrdrsrgh20kegz2pjt79rrtk40r24c9n9jkmz2nxzk9p0e87r7ls6q06py