Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
Skin
  • Chiaro
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Scuro
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Nessuna skin)
  • Nessuna skin
Collassa

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  1. Home
  2. Categorie
  3. Technical Discussion
  4. [@mooooooo@qaf.men](https://activitypub.space/user/mooooooo%40qaf.men) sort of!

[@mooooooo@qaf.men](https://activitypub.space/user/mooooooo%40qaf.men) sort of!

Pianificato Fissato Bloccato Spostato Technical Discussion
4 Post 4 Autori 16 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • julian@activitypub.space
    julian@activitypub.space
    julian@activitypub.space
    scritto su ultima modifica di
    #1

    @mooooooo@qaf.men sort of! Mastodon does it that way, where if you request the keyId as 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 publicKey portion alone.

    For example, @evan's tags.pub does this correctly. @test@tags.pub will return the full actor object, but if you query the publicKeyPem, you get this: https://tags.pub/user/test/publickey

    1 Risposta Ultima Risposta
    0
    • trwnh@mastodon.social
      trwnh@mastodon.social
      trwnh@mastodon.social
      scritto su ultima modifica di
      #2

      @julian @mooooooo

      > 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.

      evan@cosocial.ca 1 Risposta Ultima Risposta
      0
      • trwnh@mastodon.social trwnh@mastodon.social

        @julian @mooooooo

        > 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.

        evan@cosocial.ca
        evan@cosocial.ca
        evan@cosocial.ca
        scritto su ultima modifica di
        #3

        @trwnh @julian @mooooooo it's also crappy for caching. Using a standalone document for the key lets you set a far-future expiry header, `Cache-Control: max-age=315360000`. So, clients never need to refetch. If you want to rotate the key, you give a new ID with a new URL.

        1 Risposta Ultima Risposta
        0
        • dusoft@activitypub.space
          dusoft@activitypub.space
          dusoft@activitypub.space
          scritto su ultima modifica di
          #4

          @mooooooo@qaf.men You can try checking my code:
          https://github.com/nekromoff/mastodon-bots

          1 Risposta Ultima Risposta
          0

          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
          Rispondi
          • Risposta alla discussione
          Effettua l'accesso per rispondere
          • Da Vecchi a Nuovi
          • Da Nuovi a Vecchi
          • Più Voti


          Feed RSS
          [@mooooooo@qaf.men](https://activitypub.space/user/mooooooo%40qaf.men) sort of!
          @pierobosio@soc.bosio.info
          NodeBB Contributors
          • Accedi

          • Accedi o registrati per effettuare la ricerca.
          • Primo post
            Ultimo post