Wykres commitów

661 Commity (ca521d4a03f6f4daa21dd8a13e5e10be0becf826)

Autor SHA1 Wiadomość Data
Jason Robinson 5b0033fdbc Fix signature validation for Diaspora relayables
Problems if payload text contained unicode.
2017-05-07 22:07:12 +03:00
Jason Robinson 3c714efe4a Add more error logging to Diaspora mappers failed validation 2017-05-07 21:51:13 +03:00
Jason Robinson 0f1d55829b Merge pull request #77 from jaywink/handle-send-helper
Add handle_send outbound helper
2017-05-07 21:35:20 +03:00
Jason Robinson 8478d3b90c Add handle_send outbound helper
Allows sending a single entity to multiple receivers. Currently public Diaspora entities supported.
2017-05-07 21:28:56 +03:00
Jason Robinson 75272cc820 Improve documentation of handle_receive inbound method
Sender returned by the method is confusing as it's not necessarily the author of any of the returned entities. Clarify in the docstring.

Closes #16
2017-05-06 23:15:22 +03:00
Jason Robinson be00546c39 Merge pull request #74 from jaywink/diaspora-relayable-element-order
Save order of elements for Diaspora relayables to the entities
2017-05-06 21:46:44 +03:00
Jason Robinson bf5b4a03b6 Save order of elements for Diaspora relayables to the entities
Refs: diaspora/diaspora_federation#26
2017-05-06 21:24:03 +03:00
Jason Robinson 5309bea06f Merge pull request #73 from jaywink/diaspora-properties
Support new Diaspora XML payload properties and refactor payload processing
2017-05-06 21:01:54 +03:00
Jason Robinson f773e78ebc Add changelog for #60 2017-05-06 20:24:50 +03:00
Jason Robinson b27ecc5223 Refactor processing Diaspora payload xml
New protocol version is dropping the xml/post wrapper elements. Support parsing these payloads plus legacy ones.

Refs: #60
2017-05-06 20:19:40 +03:00
Jason Robinson 7e0651bb35 Support Diaspora payload new properties
Refs: #60
2017-05-06 20:17:19 +03:00
Jason Robinson 3a2910afc2 Merge pull request #72 from jaywink/comments
Add remaining support for Diaspora comments and likes
2017-05-02 22:14:04 +03:00
Jason Robinson e8ad854a6a Copy author_signature to parent_author_signature for relayables
Diaspora currently always requires this, even if they will be the same. It is apparently being removed.
2017-05-02 21:51:20 +03:00
Jason Robinson 906c1e8651 Don't use urlsafe encode/decode methods when signing Diaspora relayables 2017-05-02 21:11:38 +03:00
Jason Robinson ac2eddf23e Ensure get_outbound_entity checks correctly for DiasporaRelayableMixin 2017-05-01 22:49:34 +03:00
Jason Robinson 999c27cd5c Add Diaspora relayable sign as parent 2017-05-01 21:58:00 +03:00
Jason Robinson 7ccc070711 Pass sender_key_fetcher to mappers from inbound handler 2017-05-01 19:27:44 +03:00
Jason Robinson 07d4484077 Add NoSuitableProtocolFoundError to documentation 2017-05-01 18:58:29 +03:00
Jason Robinson c99caa75c4 Improve some docstrings 2017-05-01 18:48:48 +03:00
Jason Robinson 3206cab1e1 Add changelog related to comment and like additions 2017-05-01 17:42:49 +03:00
Jason Robinson e06509af19 Make Diaspora get_full_xml_representation take in private key as param instead of user 2017-05-01 17:32:46 +03:00
Jason Robinson 2a3700b518 Improve tests for relayable signing and verification 2017-05-01 11:37:13 +03:00
Jason Robinson 0a80f17334 PEP8 fixes 2017-05-01 11:01:44 +03:00
Jason Robinson bac0898394 Make DiasporaLike a relayable 2017-05-01 11:00:21 +03:00
Jason Robinson 9e9ded2c3d Remove SignedMixin in favour of base entity signing by default
While the signing methods are empty at the moment, preparation for ActivityPub, where every object would need to be signed separately (as signature is not in payload header but in the object itself), get rid of separate SignedMixin and just have signature and sign() on the base entity. Diaspora entities provide the necessary methods for signing and validation for DiasporaComment currently.
2017-05-01 10:54:31 +03:00
Jason Robinson ce9c3c7ba4 Add create relayable signature method
Includes backwards incompatible changes when creating outbound entities.
2017-05-01 00:42:45 +03:00
Jason Robinson 268afb950b Add relayable signature verification for DiasporaComment 2017-04-30 22:15:57 +03:00
Jason Robinson b24a3370f2 Raise specific exception when Diaspora payload signature verification fails
Also convert another 'assert' to a raise. Asserts might be skipped in production environments.

Closes #61
2017-04-29 22:05:38 +03:00
Jason Robinson a417cdda41 Add example comment payload for signature verification / creation work 2017-04-29 20:37:01 +03:00
Jason Robinson 14030faeb3 Add changelog entry for author_signature and _source_protocol 2017-04-23 22:14:38 +03:00
Jason Robinson a606a7a4d2 Add source protocol name to entity
This could be useful for apps to know which protocol payload the entity was created from.
2017-04-23 22:09:43 +03:00
Jason Robinson ba1365f009 Save Diaspora author_signature to entity 2017-04-23 22:09:04 +03:00
Jason Robinson be329a5fe7 A few code style cleanups in entities/test_base 2017-04-23 21:48:18 +03:00
Jason Robinson 5eabc8faa1 Add SignedMixin to Comment and Reaction entities
Contains a required 'signature' attribute.
2017-04-23 21:47:17 +03:00
Jason Robinson e60275fd6b Remove unnecessary duplicated target_guid in ParticipationMixin 2017-04-23 20:10:37 +03:00
Jason Robinson 98ec137372 Merge pull request #71 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2017-04-08 11:08:44 +03:00
The Gitter Badger 8652e9dc40 Add Gitter badge 2017-04-08 08:03:47 +00:00
Jason Robinson 7960e525b5 Fix remaining Social-Federation old name reference in docs 2017-04-08 11:00:06 +03:00
Jason Robinson bedf5801e9 Release 0.10.1 2017-03-09 23:24:08 +02:00
Jason Robinson f5e4379ff3 Merge pull request #69 from jaywink/fix-entity-tags
Ensure tags are lower cased after collecting them from raw_content
2017-03-09 23:22:50 +02:00
Jason Robinson 59d2b71041 Make pep8speaks less verbose 2017-03-09 23:18:47 +02:00
Jason Robinson 8ccb8eefdf Ensure tags are lower cased after collecting them from raw_content 2017-03-09 23:18:44 +02:00
Jason Robinson 503076a30c Add missing 0.10.0 timestamp to changelog 2017-01-28 16:56:38 +02:00
Jason Robinson abfc01d3d5 Release 0.10.0 2017-01-28 16:55:35 +02:00
Jason Robinson 601e970cca Merge pull request #68 from jaywink/fix-timestamp
Add support for new Diaspora timestamp format
2017-01-28 13:44:41 +02:00
Jason Robinson f6a5438a54 Add support for new Diaspora timestamp format
Diaspora protocol changed to ISO 8601 timestamp format in protocol version 0.1.6.

Closes #67
2017-01-28 13:34:48 +02:00
Jason Robinson 2a10cb9ffd Add Python 3.6 to setup.py classifiers 2017-01-12 22:05:19 +02:00
Jason Robinson 0a0fd80366 Merge pull request #66 from jaywink/python3.6
Build also Python 3.6 on Travis
2017-01-12 22:02:47 +02:00
Jason Robinson 3f0a412331 Merge pull request #65 from jaywink/exceptions
Don't crash diaspora retrieve_diaspora_webfinger on XRD parse error
2017-01-12 22:02:24 +02:00
Jason Robinson ee0beb884d Add .pep8speaks.yml 2017-01-12 21:58:37 +02:00