Skip to content
  • Categories
  • Recent
  • Popular
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

NodeBB-ActivityPub Bridge Test Instance

  1. Home
  2. Categories
  3. ActivityPub
  4. Pleroma Webfinger compatibility

Pleroma Webfinger compatibility

Scheduled Pinned Locked Moved ActivityPub
activitypubpleromawebfinger
11 Posts 3 Posters 0 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.
  • thisismissem@hachyderm.ioT This user is from outside of this forum
    thisismissem@hachyderm.ioT This user is from outside of this forum
    thisismissem@hachyderm.io
    wrote last edited by
    #2

    @julian fedify manages it, so many take a look at their webfinger implementation?

    Link Preview Image
    1 Reply Last reply
    1
    0
    • thisismissem@hachyderm.ioT This user is from outside of this forum
      thisismissem@hachyderm.ioT This user is from outside of this forum
      thisismissem@hachyderm.io
      wrote last edited by
      #3

      @julian try sending `Accept: application/jrd+json`

      Since that's the content-type for webfinger, not application/json. In fedify, the fetch call is also with redirect manual, such that max redirection logic and SSRF checks can be done.

      1 Reply Last reply
      1
      0
      • thisismissem@hachyderm.ioT This user is from outside of this forum
        thisismissem@hachyderm.ioT This user is from outside of this forum
        thisismissem@hachyderm.io
        wrote last edited by
        #4

        @julian oh! it's because you're sending the Content-Type header, send Accept instead.

        thisismissem@hachyderm.ioT 1 Reply Last reply
        1
        0
        • thisismissem@hachyderm.ioT thisismissem@hachyderm.io

          @julian oh! it's because you're sending the Content-Type header, send Accept instead.

          thisismissem@hachyderm.ioT This user is from outside of this forum
          thisismissem@hachyderm.ioT This user is from outside of this forum
          thisismissem@hachyderm.io
          wrote last edited by
          #5

          @julian which actually makes sense, because with a GET request, you're not sending any request content, and Content-Type applies to the request body, not to the content type you want back.

          julian@community.nodebb.orgJ 1 Reply Last reply
          1
          0
          • thisismissem@hachyderm.ioT thisismissem@hachyderm.io

            @julian which actually makes sense, because with a GET request, you're not sending any request content, and Content-Type applies to the request body, not to the content type you want back.

            julian@community.nodebb.orgJ This user is from outside of this forum
            julian@community.nodebb.orgJ This user is from outside of this forum
            julian@community.nodebb.org
            wrote last edited by
            #6

            thisismissem@hachyderm.io yeah, I tried sending Accept too, which also fails. Will try the suggested type.

            The library we use just blanket sends content-type because we're usually POSTing haha. Shouldn't hurt to include it, but who knows.

            1 Reply Last reply
            1
            0
            • thisismissem@hachyderm.ioT This user is from outside of this forum
              thisismissem@hachyderm.ioT This user is from outside of this forum
              thisismissem@hachyderm.io
              wrote last edited by
              #7

              @julian eh? I mean, sure, or just detect whether the request is a GET / HEAD / OPTIONS request, and then don't send the content-type header? (since those methods don't support request bodies iirc)

              julian@community.nodebb.orgJ 1 Reply Last reply
              1
              0
              • thisismissem@hachyderm.ioT thisismissem@hachyderm.io

                @julian eh? I mean, sure, or just detect whether the request is a GET / HEAD / OPTIONS request, and then don't send the content-type header? (since those methods don't support request bodies iirc)

                julian@community.nodebb.orgJ This user is from outside of this forum
                julian@community.nodebb.orgJ This user is from outside of this forum
                julian@community.nodebb.org
                wrote last edited by
                #8

                thisismissem@hachyderm.io yes, but... that takes effforrrrrrrtttt 😦

                Anyway, ding ding ding, application/jrd+json was it πŸ†

                1 Reply Last reply
                1
                0
                • trwnh@mastodon.socialT This user is from outside of this forum
                  trwnh@mastodon.socialT This user is from outside of this forum
                  trwnh@mastodon.social
                  wrote last edited by
                  #9

                  @julian are you sending accept application/json or accept application/jrd+json instead of accept application/activity+json?

                  julian@community.nodebb.orgJ 1 Reply Last reply
                  1
                  0
                  • trwnh@mastodon.socialT trwnh@mastodon.social

                    @julian are you sending accept application/json or accept application/jrd+json instead of accept application/activity+json?

                    julian@community.nodebb.orgJ This user is from outside of this forum
                    julian@community.nodebb.orgJ This user is from outside of this forum
                    julian@community.nodebb.org
                    wrote last edited by julian@community.nodebb.org
                    #10

                    trwnh@mastodon.social before, I was not sending Accept at all, now I am sending application/jrd+json.

                    FWIW testing with cURL showed the same Bad Request with application/json.

                    1 Reply Last reply
                    1
                    0
                    • trwnh@mastodon.socialT This user is from outside of this forum
                      trwnh@mastodon.socialT This user is from outside of this forum
                      trwnh@mastodon.social
                      wrote last edited by
                      #11

                      @julian the Bad Request must be something else, because pleroma handles application/json and application/jrd+json just fine https://git.pleroma.social/pleroma/pleroma/-/blob/develop/lib/pleroma/web/web_finger/web_finger_controller.ex#L33

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


                      • Login

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