Lukas Matt
85d191bffb
Add https://w3id.org/security/v1 extension
...
* update go-mod httpsig
2019-09-16 22:47:07 +02:00
Cory Slep
d87793a589
Add context.Context as an output to Authorize interfaces
2019-09-14 16:35:48 +02:00
Cory Slep
9b139af408
Add pseudo-type PublicKey for actor types
2019-09-13 22:49:56 +02:00
Cory Slep
79acb4ef1c
gofmt
2019-09-13 12:31:07 +02:00
Cory Slep
224629ca54
No longer manually set Digest header
2019-09-13 12:31:00 +02:00
Cory Slep
92ecc4f524
Update to latest httpsig API
2019-09-13 12:18:49 +02:00
Cory Slep
351ebe64b7
Migrate serialize from pub to streams; export
2019-08-09 17:29:08 +02:00
Cory Slep
f655c76e91
Permit hooks to return the modified context
2019-06-17 21:11:51 +02:00
Cory Slep
c365730b4e
go-fed improvements based on experience.
...
1. Obtaining callbacks are allowed to return errors
2. Hooks for setting context information based on request body is now
possible.
2019-06-17 20:19:11 +02:00
Cory Slep
f339304ce4
Fix race condition in signer
2019-05-11 11:33:55 +02:00
Cory Slep
28ffa4c8ad
201 and 202 are also OK statuses
2019-05-04 10:02:35 +02:00
Cory Slep
8dd3c056b3
Add ids to Accept/Rejects to Follows; clean out nested @context in serialization
2019-05-03 23:39:40 +02:00
Cory Slep
3bc578e7dd
Fix numerous bugs. Identify more.
2019-05-03 21:44:18 +02:00
Cory Slep
78a8ee667f
Fix @context value for activitystreams vocabulary.
...
The activitystreams.jsonld had its id set incorrectly.
2019-04-13 00:00:52 +02:00
Cory Slep
06954abe84
Fix ID construction from requests
2019-04-13 00:00:35 +02:00
Cory Slep
d20d97a526
Add two different signers for GET vs POST requests
2019-04-04 21:38:08 +02:00
Cory Slep
ca18901fcc
Bugfix for programmatic delivery
2019-04-03 23:35:57 +02:00
Cory Slep
a65388c27b
Better abstract programmatic sending of activities.
2019-03-26 22:00:55 +01:00
Cory Slep
d535bc95f3
Add FederatingActor and implementation.
2019-03-24 17:18:22 +01:00
Cory Slep
b9a95751dc
Add Insert methods for nonfunctional properties.
2019-03-24 14:25:36 +01:00
Cory Slep
b5eecc692c
Add SetType nonfunctional property method
2019-03-24 10:55:23 +01:00
Cory Slep
1ea8e2c7f3
Add more unit tests for new id generation.
...
Fix major bugs: was using IsExtendedBy checks instead of IsOrExtends
from the streams package.
For example, if checking for an OrderedCollection, was
checking its child types and failing if it was an OrderedCollection. Now
this is fixed, so OrderedCollection and child types are accepted.
2019-03-13 21:19:38 +01:00
Cory Slep
42b799393a
Fix astool bug incorrectly referencing an unknown variable in generated code
2019-03-13 21:14:06 +01:00
Cory Slep
1ed044f7cf
Add IsOrExtends to astool; regenerate ActivityStreams code.
...
The IsOrExtends will return true if an object is a type T or extends
from that type in the ActivityStreams vocabulary.
2019-03-13 21:09:51 +01:00
Cory Slep
ee16417bb3
Add PostOutbox tests and bugfixes for side effect actor.
2019-03-04 00:06:37 +01:00
Cory Slep
305e8100f1
Complete inbox forwarding tests
2019-03-03 23:17:00 +01:00
Cory Slep
b4b18b96fa
Two more inbox forwarding tests now pass.
2019-03-02 19:13:02 +01:00
Cory Slep
d58887e7b3
Inbox forwarding bug fixes.
...
Properly use nil guards on inbox forwarding properties. Correct the
recursion when examining these values so that it no longer inspects
ownership of the activitiy, and no longer double-checks an unowned IRI.
Finally, have deliver use the batch deliver call.
2019-03-02 19:11:26 +01:00
Cory Slep
e1c2c8868a
Fix go.mod
2019-03-01 22:28:13 +01:00
Cory Slep
48e15c99a2
Remove workaround for go v1.11 compiler bug
2019-02-28 23:19:53 +01:00
Cory Slep
823ab4cc5a
Update module files BUT enabling modules breaks the build.
...
The new updates to golang modules ensure that this code generation
solution just got a lot more painful, as now each generated subpackage
needs its own go-mod file autogenerated, it seems.
2019-02-28 23:12:50 +01:00
Cory Slep
6e4cff677a
Fix formatting.
2019-02-28 22:43:35 +01:00
Cory Slep
5d598046c2
Disallow destination to have '..' in path
2019-02-28 22:13:49 +01:00
Cory Slep
87e56d8d96
Require destination directory to be specified.
...
Permit generation to a subdirectory and the current working directory.
2019-02-28 22:11:24 +01:00
Cory Slep
1fac7a8c8d
Fix README typo
2019-02-28 21:31:35 +01:00
Cory Slep
3dfe12a7a1
Update CHANGELOG
2019-02-24 16:51:35 +01:00
Cory Slep
19c351e729
Minor fixes in the README
2019-02-24 16:45:54 +01:00
Cory Slep
4a8f7314a7
Update READMEs
2019-02-24 16:27:02 +01:00
Cory Slep
9417306aa3
Outline the needed federating side effects tests.
2019-02-24 13:05:00 +01:00
Cory Slep
5f6b12a76d
More unit tests and bug fixes.
2019-02-23 18:42:40 +01:00
Cory Slep
36a38b74b0
Increase side effect actor test coverage.
...
Introduce DefaultCallback to the protocol interfaces.
2019-02-20 21:31:11 +01:00
Cory Slep
1e5f5f9c86
Update authn and authz functions to have intuitive return values
2019-02-19 20:40:26 +01:00
Cory Slep
b41491e2c2
Add missing Unlock calls.
2019-02-19 20:33:42 +01:00
Cory Slep
82851801ed
Some tests for the side_effect_actor.go
2019-02-19 20:33:22 +01:00
Cory Slep
71b853d708
Update base actor tests to accurate reflect interfaces.
2019-02-19 20:07:26 +01:00
Cory Slep
52bc5fb9a5
Add tests for the base actor.
...
Removed old pub tests.
2019-02-16 20:30:18 +01:00
Cory Slep
dc16296d74
Remove TODO that is now documented as an issue.
2019-02-15 23:56:49 +01:00
Cory Slep
674fa0245d
Use AppendType instead of custom resolver
2019-02-15 23:54:26 +01:00
Cory Slep
3180eaf568
Add AppendType and PrependType
2019-02-15 23:54:09 +01:00
Cory Slep
4b87e634a0
Add SetType to properties
2019-02-15 23:29:38 +01:00