diff options
author | puckipedia <puck@puckipedia.com> | 2018-02-02 10:19:59 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-02-02 10:19:59 +0100 |
commit | 8e4cf6282b8a3bcb100506b27ecaed3e88832681 (patch) | |
tree | c07fb21c861fe62d42435fcc0f145361c883e57d /app/controllers/concerns | |
parent | 04fef7b8886bb78f3473e143894a521ca578f1db (diff) |
Allow retrieval of private statuses (single or in outbox) using HTTP signatures (#6225)
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r-- | app/controllers/concerns/signature_authentication.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |