Jason Robinson
dc8edbc7e6
Refactor handle_send function recipients and delivery code
...
The outbound function `outbound.handle_send` parameter `recipients`
structure has changed. It must now be a list of dictionaries,
containing at minimum the following: `fid` for the recipient endpoint,
`protocol` for the protocol to use and `public` as a boolean whether
the payload should be treated as visible to anyone.
For Diaspora private deliveries, also a `public_key` is required
containing the receiver public key. Note that passing in handles as
recipients is not any more possible - always pass in a url for `fid`.
2019-03-17 19:39:55 +02:00
Jason Robinson
3a44534b24
Add cryptography to dependencies
...
Required by requests-http-signatures. Which is a shame since
we already use pycryptodome.
2019-03-16 03:07:31 +02:00
Jason Robinson
2fb2da6955
Work on ActivityPub HTTP signatures and payload delivery
...
Also removes some legacy cruft for the failed Diaspora URI's as ID's experiment.
Refs: #7
2019-03-06 22:42:33 +02:00
Jason Robinson
890e2c940b
Make UserType an attrs class
2018-08-19 22:02:09 +03:00
Jason Robinson
5a01616df1
Fix references to code to point to Feneas gitlab
2018-08-11 22:32:44 +03:00
Jason Robinson
258a067412
Merge branch 'master' into patch-017
2018-08-11 21:50:35 +03:00
Jason Robinson
bc38ac990b
Switch crypto library `pycrypto` to `pycryptodome`
...
This is a more up to date fork of the former. This fixes CVE-2018-6594 found in the former.
**Deployment note.** When updating an application, you *must* uninstall `pycrypto` first, otherwise there will be a conflict if both the versions are installed at the same time. To uninstall, do `pip uninstall pycrypto`.
Release 0.17.0
2018-08-11 21:47:16 +03:00
Jason Robinson
454dc8ccbc
Drop compatibility for Python <= 3.5
2018-07-23 18:33:47 +03:00
Jason Robinson
a2c8d1c061
Switch to ipdata.co service for country lookups
2018-05-27 20:34:47 +03:00
Jason Robinson
273b7ba47a
Free up the dependency upper versions
...
We have good test coverage and do a daily automated build. Free up dependency upper limits and lock them down when problems occur.
2017-05-12 23:20:05 +03:00
Jason Robinson
2a10cb9ffd
Add Python 3.6 to setup.py classifiers
2017-01-12 22:05:19 +02:00
Jason Robinson
7cac9e9227
Fix setup.py classifiers oops for 0.8.0 release
2016-10-09 15:36:28 +03:00
Jason Robinson
3291ce1b3b
Add a few setup.py classifiers
2016-10-04 22:48:52 +03:00
Jason Robinson
a80699df3c
Bump development status to beta
2016-10-04 22:45:52 +03:00
Jason Robinson
c5becee7fe
Rename library to federation
...
Less typing saves lives.
2016-10-04 22:07:24 +03:00
Jason Robinson
667f079942
Improve docs and unify with readme
2016-10-04 21:31:51 +03:00
Jason Robinson
b2011b3fac
Release 0.4.1
2016-09-04 23:15:39 +03:00
Jason Robinson
b64031ef29
Add remote profile fetcher
...
High level method to fetch a remote profile. Currently falls back to Diaspora protocol as no others are supported.
Returns a Profile entity.
Closes #15
2016-07-24 20:25:16 +03:00
Jason Robinson
1f9c4d8e68
Add utility method to fetch remote document
...
Works with either url or host/path. Falls back to http if needed or SSL connection error (optionally cert error too).
Refs: #22
2016-07-22 23:53:10 +03:00
Jason Robinson
3c6c7f6145
Unlock more direct dependency version ranges
...
Unlock most of the direct dependencies to a certain version range. Unlock all of test requirements to any version.
2016-05-22 21:43:23 +03:00
Jason Robinson
a6863680ef
Release 0.3.2
2016-05-09 22:04:08 +03:00
Jason Robinson
3b69b632c5
Bump and loosen python-dateutil
2016-05-09 21:56:23 +03:00
Jason Robinson
a6aa6eda0c
Bump and loosen lxml
2016-05-09 21:52:22 +03:00
Jason Robinson
cddebf87cd
Install all test files with package
...
Test factories can be useful in building project tests.
2016-04-16 22:28:10 +03:00
Jason Robinson
de87e7e210
Release 0.3.1
2016-04-13 22:14:42 +03:00
Jason Robinson
1411c1aadd
Release 0.3.0
2016-04-13 18:47:30 +03:00
Jason Robinson
e8cc4d7bdd
Release 0.2.0
2016-04-09 13:56:17 +03:00
Jason Robinson
9a2d7a0b82
Add travis config
2016-04-03 17:29:54 +03:00
Jason Robinson
8fe7347dec
Add Post.tags property
...
Retrieves a set of unique tags found in the post.
2015-08-09 03:29:08 +03:00
Jason Robinson
94d8aad530
Make DiasporaWebFinger Python2.7 compatible
...
Refs: #1
2015-08-08 02:27:56 +03:00
Jason Robinson
921a9b527d
Always validate .well-known/social-relay when rendering it
...
Not much point in schema otherwise
2015-07-16 23:58:41 +03:00
Jason Robinson
bf4e494841
Add support for .well-known/social-relay document
...
Used in apps to provide subscription preferences, see: https://www.loomio.org/d/9vpoe0UR/public-post-federation#comment-730911
2015-07-16 23:01:10 +03:00
Jason Robinson
1055261735
Add hcard template in manifest
2015-07-12 22:24:00 +03:00
Jason Robinson
f61c2b576f
Implement XRD host-meta generator
2015-07-12 01:23:11 +03:00
Jason Robinson
67ebac03ed
Wait, why are social-relay deps here? Late night commits.... Fix setup.py, remove unnecessary requirements.txt files too
2015-07-08 11:57:33 +03:00
Jason Robinson
394dbab0e1
Fix reqs in setup.py
2015-07-05 23:47:25 +03:00
Jason Robinson
92f8550f9c
Add a setup.py file
2015-07-05 23:24:08 +03:00