ckolderup / postmarks

a single-user bookmarking website designed to live on the Fediverse
https://postmarks.glitch.me
MIT License
459 stars 38 forks source link

Add HTTP signature to GET requests to support Mastodon's AUTHORIZED_FETCH setting. #92

Closed pburke closed 10 months ago

pburke commented 10 months ago

Fixes #58

pburke commented 10 months ago

I tested these changes on a local Postmarks install interacting with a local Mastodon install. More testing against live servers is probably needed.

ckolderup commented 10 months ago

I'll hold off on a full review since I agree with your decision on the exported functions, but this is a great start, thank you.

pburke commented 10 months ago

Added signedGetJSON and signedPostJSON helpers, so I think this is ready for a full review! :sparkles: