diff --git a/lib/micropub/webserver.rb b/lib/micropub/webserver.rb index 9c76416..91b32f7 100644 --- a/lib/micropub/webserver.rb +++ b/lib/micropub/webserver.rb @@ -56,6 +56,7 @@ module Micropub token = Indieauth::Token.new(endpoints.token_endpoint) auth_type, auth_token = request.env["HTTP_AUTHORIZATION"]&.split(" ") + auth_token ||= params["access_token"] auth_type == "Bearer" && token.validate(auth_token) end