about summary refs log tree commit diff
path: root/app/controllers/api/subscriptions_controller.rb
AgeCommit message (Collapse)Author
2017-07-14HTTP signatures (#4146)Eugen Rochko
* Add Request class with HTTP signature generator Spec: https://tools.ietf.org/html/draft-cavage-http-signatures-06 * Add HTTP signature verification concern * Add test for SignatureVerification concern * Add basic test for Request class * Make PuSH subscribe/unsubscribe requests use new Request class Accidentally fix lease_seconds not being set and sent properly, and change the new minimum subscription duration to 1 day * Make all PuSH workers use new Request class * Make Salmon sender use new Request class * Make FetchLinkService use new Request class * Make FetchAtomService use the new Request class * Make Remotable use the new Request class * Make ResolveRemoteAccountService use the new Request class * Add more tests * Allow +-30 seconds window for signed request to remain valid * Disable time window validation for signed requests, restore 7 days as PuSH subscription duration (which was previous default due to a bug)
2017-06-07Clean up for api/base controller (#3629)Matt Jankowski
* Move ApiController to Api/BaseController * API controllers inherit from Api::BaseController * Add coverage for various error cases in api/base controller
2017-05-31Clean up api/subscriptions controller (#3448)Matt Jankowski
2017-05-03Fix #2706 - Always respond with 200 to PuSH payloads (#2733)Eugen Rochko
Fix #2196 - Respond with 201 when Salmon accepted, 400 when unverified Fix #2629 - Correctly handle confirm_domain? for local accounts Unify rules for extracting author acct from XML, prefer <email>, fall back to <name> + <uri> (see also #2017, #2172)
2016-11-15Fix rubocop issues, introduce usage of frozen literal to improve performanceEugen Rochko
2016-11-15Delegate processing of incoming PuSH data to background workersEugen Rochko
2016-10-10Stop logging incoming AtomEugen Rochko
2016-10-10Log incoming Atom from PuSHEugen Rochko
2016-10-09Adding domain blocksEugen Rochko
2016-09-29Improve code styleEugen Rochko
2016-09-20Since GNU Social hubs don't seem to return a hub.lease_seconds param in the ↵Eugen Rochko
subscription confirmation request, we'll have to default that value to the GS "minimum" (from their code) which is 24 hours.
2016-09-20More debugging for PuSH confirmationsEugen Rochko
2016-09-20Add more logging to PuSH callbackEugen Rochko
2016-09-20Upgrade to PubSubHubbub 0.4 (removing verify_token)Eugen Rochko
2016-09-20Separate PuSH subscriptions from following, add mastodon:push:refresh task,Eugen Rochko
respect hub.lease_seconds (fix #46)
2016-08-17Upgrade to Rails 5.0.0.1Eugen Rochko
2016-03-21Escape PuSH challenge and change subscriptions and salmon APIs to text/plainEugen Rochko
2016-03-20Writing out more tests, fixed some bugsEugen Rochko
2016-03-05Fixing some bugs, adding pending test examplesEugen Rochko
2016-02-29Refactoring Grape API methods into normal controllers & other thingsEugen Rochko