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 (Darkly)
  • No Skin
Collapse

Chebucto Regional Softball Club

  1. Home
  2. Uncategorized
  3. Pleroma Webfinger compatibility
A forum for discussing and organizing recreational softball and baseball games and leagues in the greater Halifax area.

Pleroma Webfinger compatibility

Scheduled Pinned Locked Moved Uncategorized
activitypubpleromawebfinger
11 Posts 3 Posters 101 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.
  • julianJ This user is from outside of this forum
    julianJ This user is from outside of this forum
    julian
    wrote on last edited by
    #1
    Does anybody know what exactly Pleroma needs for a valid Webfinger check? I'm attempting to figure out why `@jmtd@pleroma.debian.social` won't resolve in NodeBB, and it's because the webfinger call returns `400 Bad Request`. NodeBB is calling `https://pleroma.debian.social/.well-known/webfinger?resource=acct%3Ajmtd%40pleroma.debian.social` with `User-Agent` and `Content-Type` headers (curiously, it's *not* sending `Accept`, but it also fails if that header is set, so that's irrelevant.) Navigating to that webfinger url in the browser returns XML, which is 😬 but I'm not even getting that when NodeBB makes the call.
    1 Reply Last reply
    0
    • ActivityPubA ActivityPub shared this topic on
    • Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
      Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
      Emelia πŸ‘ΈπŸ»
      wrote on last edited by
      #2

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

      Link Preview Image
      1 Reply Last reply
      0
      • Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
        Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
        Emelia πŸ‘ΈπŸ»
        wrote on 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
        0
        • Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
          Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
          Emelia πŸ‘ΈπŸ»
          wrote on last edited by
          #4

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

          Emelia πŸ‘ΈπŸ»T 1 Reply Last reply
          0
          • Emelia πŸ‘ΈπŸ»T Emelia πŸ‘ΈπŸ»

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

            Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
            Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
            Emelia πŸ‘ΈπŸ»
            wrote on 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.

            julianJ 1 Reply Last reply
            0
            • Emelia πŸ‘ΈπŸ»T Emelia πŸ‘ΈπŸ»

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

              julianJ This user is from outside of this forum
              julianJ This user is from outside of this forum
              julian
              wrote on last edited by
              #6
              [thisismissem@hachyderm.io](https://community.nodebb.org/user/thisismissem%40hachyderm.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
              0
              • Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
                Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
                Emelia πŸ‘ΈπŸ»
                wrote on 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)

                julianJ 1 Reply Last reply
                0
                • Emelia πŸ‘ΈπŸ»T Emelia πŸ‘ΈπŸ»

                  @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)

                  julianJ This user is from outside of this forum
                  julianJ This user is from outside of this forum
                  julian
                  wrote on last edited by
                  #8
                  [thisismissem@hachyderm.io](https://community.nodebb.org/user/thisismissem%40hachyderm.io) yes, but... that takes _effforrrrrrrtttt_ 😦 Anyway, _ding ding ding_, `application/jrd+json` was it πŸ†
                  1 Reply Last reply
                  0
                  • infinite love β΄³T This user is from outside of this forum
                    infinite love β΄³T This user is from outside of this forum
                    infinite love β΄³
                    wrote on last edited by
                    #9

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

                    julianJ 1 Reply Last reply
                    1
                    0
                    • infinite love β΄³T infinite love β΄³

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

                      julianJ This user is from outside of this forum
                      julianJ This user is from outside of this forum
                      julian
                      wrote on last edited by
                      #10
                      [trwnh@mastodon.social](https://community.nodebb.org/user/trwnh%40mastodon.social) before, I was not sending `Accept` at all, now I am sending `application/jrd+json`.
                      1 Reply Last reply
                      1
                      0
                      • infinite love β΄³T This user is from outside of this forum
                        infinite love β΄³T This user is from outside of this forum
                        infinite love β΄³
                        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
                        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