aaronpk / Aperture

Aperture is a Microsub server. Currently in beta.
https://aperture.p3k.io
Apache License 2.0
70 stars 5 forks source link

Support access_token for micropub endpoint #33

Closed zoglesby closed 6 years ago

zoglesby commented 6 years ago

I should start by saying this is because I am lazy. I was trying to use IFTTT to push notifications to aperture using the webhooks "channel", but they do not support adding Headers so I can't pass "Authorization: Bearer XXX", would it be possible to add support for access_token in the body as well?

Looking at the code it seems like you are checking for Authorization: Bearer and if not returning a 401, if I am missing something please let me know.

aaronpk commented 6 years ago

Good call, I'll add this. I wish IFTTT would support custom headers or at least the Authorization header tho! This has been a problem for me in the past as well. Maybe if a bunch of us keep requesting it they'll eventually add it.