aaronpk / Watchtower

🏰 a minimal API for watching web pages for changes, roughly speaks the WebSub protocol
Apache License 2.0
42 stars 4 forks source link

Define Auth header to pass through for feed #6

Open EdwardHinkle opened 6 years ago

EdwardHinkle commented 6 years ago

I don’t suppose this is a thing but I thought I would check. This is primarily because I would like to subscribe to some JSON Feeds from Micro.blog that requires authentication, so I was wondering if there could be a way to say “use this header token when fetching this feed”.

Probably not super common

aaronpk commented 6 years ago

I definitely want to do something like this to support private content, the trick is defining it in a way that makes sure I won't accidentally share subscriptions with tokens between users. Right now Watchtower will group fetches of a URL and deliver to multiple subscribers, so I'll need to ensure that grouping also takes into account the auth tokens.