[@mooooooo@qaf.men](https://activitypub.space/user/mooooooo%40qaf.men) sort of!
-
@mooooooo@qaf.men sort of! Mastodon does it that way, where if you request the
keyIdas identified in the HTTP signature, it returns the entire user object.That's what we call a "Mastodon-ism". It's not strictly right, but it is what it is. AP implementations should properly handle it if you return just the
publicKeyportion alone.For example, @evan's
tags.pubdoes this correctly. @test@tags.pub will return the full actor object, but if you query thepublicKeyPem, you get this: https://tags.pub/user/test/publickey -
> a "Mastodon-ism". It's not strictly right
actually it's not wrong, especially when/because the key is a fragment of the returned document.
you're supposed to get the document and then *find the graph node that matches the input id*.
i suspect some implementations don't recognize that they need to do this, and they just assume that the key is *always* at $.publicKey.publicKeyPem or at $.publicKeyPem. that's incorrect.
-
> a "Mastodon-ism". It's not strictly right
actually it's not wrong, especially when/because the key is a fragment of the returned document.
you're supposed to get the document and then *find the graph node that matches the input id*.
i suspect some implementations don't recognize that they need to do this, and they just assume that the key is *always* at $.publicKey.publicKeyPem or at $.publicKeyPem. that's incorrect.
-
@mooooooo@qaf.men You can try checking my code:
https://github.com/nekromoff/mastodon-bots
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi