From 8e4cf6282b8a3bcb100506b27ecaed3e88832681 Mon Sep 17 00:00:00 2001 From: puckipedia Date: Fri, 2 Feb 2018 10:19:59 +0100 Subject: Allow retrieval of private statuses (single or in outbox) using HTTP signatures (#6225) --- app/controllers/concerns/signature_authentication.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/controllers/concerns/signature_authentication.rb (limited to 'app/controllers/concerns') diff --git a/app/controllers/concerns/signature_authentication.rb b/app/controllers/concerns/signature_authentication.rb new file mode 100644 index 000000000..beec93223 --- /dev/null +++ b/app/controllers/concerns/signature_authentication.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module SignatureAuthentication + extend ActiveSupport::Concern + + include SignatureVerification + + def current_account + super || signed_request_account + end +end -- cgit