Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
We Distribute
  1. Home
  2. General Discussion
  3. To follow up on my #ActivityPub C2S post from a few days ago, I wrote a blog article on my thoughts about improving the C2S protocol and a description of some related experimentation I've been doing.

To follow up on my #ActivityPub C2S post from a few days ago, I wrote a blog article on my thoughts about improving the C2S protocol and a description of some related experimentation I've been doing.

Scheduled Pinned Locked Moved General Discussion
activitypub
24 Posts 3 Posters 2 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • pfefferle@mastodon.socialP pfefferle@mastodon.social

    @mariusor I worked against https://github.com/swicg/activitypub-api

    pfefferle@mastodon.socialP This user is from outside of this forum
    pfefferle@mastodon.socialP This user is from outside of this forum
    pfefferle@mastodon.social
    wrote last edited by
    #13

    @mariusor when box tries to dereference an Activity, can you maybe add the `application/activity+json` header to the request?

    mariusor@metalhead.clubM 1 Reply Last reply
    1
    • pfefferle@mastodon.socialP pfefferle@mastodon.social

      @mariusor when box tries to dereference an Activity, can you maybe add the `application/activity+json` header to the request?

      mariusor@metalhead.clubM This user is from outside of this forum
      mariusor@metalhead.clubM This user is from outside of this forum
      mariusor@metalhead.club
      wrote last edited by
      #14

      @pfefferle that should already be the case. How does the accept header look like for you on the server? I'll double check tomorrow if I'm doing something stupid and haven't noticed until now. 😄

      pfefferle@mastodon.socialP 1 Reply Last reply
      0
      • mariusor@metalhead.clubM mariusor@metalhead.club

        @pfefferle that should already be the case. How does the accept header look like for you on the server? I'll double check tomorrow if I'm doing something stupid and haven't noticed until now. 😄

        pfefferle@mastodon.socialP This user is from outside of this forum
        pfefferle@mastodon.socialP This user is from outside of this forum
        pfefferle@mastodon.social
        wrote last edited by
        #15

        @mariusor it seems to be a different issue!

        (I am not very familiar with go, so please don't blame me if what I say is totally wrong)

        I think box is checking for an Actor object and if it finds only a URI, it simply assumes that the Outbox is `{profile-id}/outbox` instead of checking for the real outbox URL!?

        mariusor@metalhead.clubM 1 Reply Last reply
        0
        • pfefferle@mastodon.socialP pfefferle@mastodon.social

          @mariusor it seems to be a different issue!

          (I am not very familiar with go, so please don't blame me if what I say is totally wrong)

          I think box is checking for an Actor object and if it finds only a URI, it simply assumes that the Outbox is `{profile-id}/outbox` instead of checking for the real outbox URL!?

          mariusor@metalhead.clubM This user is from outside of this forum
          mariusor@metalhead.clubM This user is from outside of this forum
          mariusor@metalhead.club
          wrote last edited by
          #16

          @pfefferle yes, that might be possible. BOX is strongly biased with the conventions of GoActivitPub where actorIRI/outbox is most of the time a safe assumption to make.

          But there are mechanisms to dereference the oubox correctly after loading an Actor object, and usually I default to that, the "just append outbox to the URL" logic is a last resort.

          Do you think you can send an email to the GoActivityPub mailing list with details about your issue, so I can try to find where exactly this happens? TY

          Just click new post on this page: https://lists.sr.ht/~mariusor/go-activitypub-dev

          mariusor@metalhead.clubM 1 Reply Last reply
          0
          • mariusor@metalhead.clubM mariusor@metalhead.club

            @pfefferle yes, that might be possible. BOX is strongly biased with the conventions of GoActivitPub where actorIRI/outbox is most of the time a safe assumption to make.

            But there are mechanisms to dereference the oubox correctly after loading an Actor object, and usually I default to that, the "just append outbox to the URL" logic is a last resort.

            Do you think you can send an email to the GoActivityPub mailing list with details about your issue, so I can try to find where exactly this happens? TY

            Just click new post on this page: https://lists.sr.ht/~mariusor/go-activitypub-dev

            mariusor@metalhead.clubM This user is from outside of this forum
            mariusor@metalhead.clubM This user is from outside of this forum
            mariusor@metalhead.club
            wrote last edited by
            #17

            @pfefferle I changed some stuff to a potential place where this could have happened.

            If you can build a new version of BOX, please try again and let me know if it fixes the issue for you.

            pfefferle@mastodon.socialP 2 Replies Last reply
            0
            • mariusor@metalhead.clubM mariusor@metalhead.club

              @pfefferle I changed some stuff to a potential place where this could have happened.

              If you can build a new version of BOX, please try again and let me know if it fixes the issue for you.

              pfefferle@mastodon.socialP This user is from outside of this forum
              pfefferle@mastodon.socialP This user is from outside of this forum
              pfefferle@mastodon.social
              wrote last edited by
              #18

              @mariusor it seems to work now! awesome!

              1 Reply Last reply
              0
              • mariusor@metalhead.clubM mariusor@metalhead.club

                @pfefferle I changed some stuff to a potential place where this could have happened.

                If you can build a new version of BOX, please try again and let me know if it fixes the issue for you.

                pfefferle@mastodon.socialP This user is from outside of this forum
                pfefferle@mastodon.socialP This user is from outside of this forum
                pfefferle@mastodon.social
                wrote last edited by
                #19

                @mariusor

                Link Preview Image
                mariusor@metalhead.clubM 1 Reply Last reply
                0
                • pfefferle@mastodon.socialP pfefferle@mastodon.social

                  @mariusor

                  Link Preview Image
                  mariusor@metalhead.clubM This user is from outside of this forum
                  mariusor@metalhead.clubM This user is from outside of this forum
                  mariusor@metalhead.club
                  wrote last edited by
                  #20

                  @pfefferle love it! 💗

                  GoActivityPub doesn't really do "scopes" because I couldn't think of a way store the permissions on the server side in a way that doesn't require custom logic to interact with vanilla ActivityPub objects.

                  pfefferle@mastodon.socialP mariusor@metalhead.clubM 2 Replies Last reply
                  0
                  • mariusor@metalhead.clubM mariusor@metalhead.club

                    @pfefferle love it! 💗

                    GoActivityPub doesn't really do "scopes" because I couldn't think of a way store the permissions on the server side in a way that doesn't require custom logic to interact with vanilla ActivityPub objects.

                    pfefferle@mastodon.socialP This user is from outside of this forum
                    pfefferle@mastodon.socialP This user is from outside of this forum
                    pfefferle@mastodon.social
                    wrote last edited by
                    #21

                    @mariusor yea, I think the scopes and the PKCE part was the issue!

                    but finally... 😊

                    mariusor@metalhead.clubM 1 Reply Last reply
                    0
                    • mariusor@metalhead.clubM mariusor@metalhead.club

                      @pfefferle love it! 💗

                      GoActivityPub doesn't really do "scopes" because I couldn't think of a way store the permissions on the server side in a way that doesn't require custom logic to interact with vanilla ActivityPub objects.

                      mariusor@metalhead.clubM This user is from outside of this forum
                      mariusor@metalhead.clubM This user is from outside of this forum
                      mariusor@metalhead.club
                      wrote last edited by
                      #22

                      @pfefferle if I'd come up with a scheme for them they would be related to pairs of activityType:objectType entries (instead of a global write), or maybe just the activityType

                      Ie, Create:Note, Create:Image, Undo, Delete.

                      1 Reply Last reply
                      0
                      • pfefferle@mastodon.socialP pfefferle@mastodon.social

                        @mariusor yea, I think the scopes and the PKCE part was the issue!

                        but finally... 😊

                        mariusor@metalhead.clubM This user is from outside of this forum
                        mariusor@metalhead.clubM This user is from outside of this forum
                        mariusor@metalhead.club
                        wrote last edited by
                        #23

                        @pfefferle I added a PKCE task to my todo list:

                        ~mariusor/go-activitypub#440: Add support for RFC 7636: PKCE in the authorize server — sourcehut todo

                        favicon

                        (todo.sr.ht)

                        pfefferle@mastodon.socialP 1 Reply Last reply
                        0
                        • mariusor@metalhead.clubM mariusor@metalhead.club

                          @pfefferle I added a PKCE task to my todo list:

                          ~mariusor/go-activitypub#440: Add support for RFC 7636: PKCE in the authorize server — sourcehut todo

                          favicon

                          (todo.sr.ht)

                          pfefferle@mastodon.socialP This user is from outside of this forum
                          pfefferle@mastodon.socialP This user is from outside of this forum
                          pfefferle@mastodon.social
                          wrote last edited by
                          #24

                          @mariusor awesome! ♥️

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          Powered by NodeBB Contributors
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups