HTTP signatures (#4146)
* 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)
parent
c1f201c4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/controllers/accounts_controller.rb 1 ajout, 0 suppressionapp/controllers/accounts_controller.rb
- app/controllers/api/subscriptions_controller.rb 1 ajout, 1 suppressionapp/controllers/api/subscriptions_controller.rb
- app/controllers/concerns/signature_verification.rb 87 ajouts, 0 suppressionapp/controllers/concerns/signature_verification.rb
- app/controllers/stream_entries_controller.rb 1 ajout, 0 suppressionapp/controllers/stream_entries_controller.rb
- app/helpers/http_helper.rb 0 ajout, 17 suppressionsapp/helpers/http_helper.rb
- app/lib/provider_discovery.rb 1 ajout, 3 suppressionsapp/lib/provider_discovery.rb
- app/lib/request.rb 70 ajouts, 0 suppressionapp/lib/request.rb
- app/models/account.rb 1 ajout, 1 suppressionapp/models/account.rb
- app/models/concerns/remotable.rb 1 ajout, 2 suppressionsapp/models/concerns/remotable.rb
- app/models/subscription.rb 2 ajouts, 2 suppressionsapp/models/subscription.rb
- app/services/fetch_atom_service.rb 3 ajouts, 5 suppressionsapp/services/fetch_atom_service.rb
- app/services/fetch_link_card_service.rb 2 ajouts, 4 suppressionsapp/services/fetch_link_card_service.rb
- app/services/resolve_remote_account_service.rb 1 ajout, 2 suppressionsapp/services/resolve_remote_account_service.rb
- app/services/send_interaction_service.rb 12 ajouts, 2 suppressionsapp/services/send_interaction_service.rb
- app/services/subscribe_service.rb 34 ajouts, 14 suppressionsapp/services/subscribe_service.rb
- app/services/unsubscribe_service.rb 22 ajouts, 9 suppressionsapp/services/unsubscribe_service.rb
- app/workers/pubsubhubbub/confirmation_worker.rb 5 ajouts, 7 suppressionsapp/workers/pubsubhubbub/confirmation_worker.rb
- app/workers/pubsubhubbub/delivery_worker.rb 5 ajouts, 6 suppressionsapp/workers/pubsubhubbub/delivery_worker.rb
- spec/controllers/concerns/signature_verification_spec.rb 74 ajouts, 0 suppressionspec/controllers/concerns/signature_verification_spec.rb
- spec/helpers/http_helper_spec.rb 0 ajout, 13 suppressionsspec/helpers/http_helper_spec.rb
app/helpers/http_helper.rb
supprimé
100644 → 0
app/lib/request.rb
0 → 100644
spec/helpers/http_helper_spec.rb
supprimé
100644 → 0
Veuillez vous inscrire ou vous se connecter pour commenter