Commit Graph

21 Commits

Author SHA1 Message Date
Cory Slep 6cbfb30afa Support custom schemes for handlers
This allows clients to serve data over HTTP or HTTPS, which should only
be done for development purposes.
2020-12-13 23:25:58 +01:00
Cory Slep ee53bc0369 Change delegate actor to use upper 'ID', fix tests 2020-07-05 22:37:26 +02:00
Cory Slep 82ca5994b4 Generate the new code update syntax.
This is a breaking change.

Sorry.

But it is for the long-term health.

Better now, than next year.

Expect a major version bump for next release.
2019-10-21 22:12:44 +02:00
Cory Slep d87793a589 Add context.Context as an output to Authorize interfaces 2019-09-14 16:35:48 +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 06954abe84 Fix ID construction from requests 2019-04-13 00:00:35 +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 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 1e5f5f9c86 Update authn and authz functions to have intuitive return values 2019-02-19 20:40:26 +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 272d7239f3 Generate generic ToType function. 2019-02-15 22:47:59 +01:00
Cory Slep 1227ec9a5a Change GetName to GetTypeName 2019-02-15 22:15:25 +01:00
Cory Slep b625914c1a Send BadRequest if library can't handle the type 2019-02-15 21:45:48 +01:00
Cory Slep cc83b751a1 Update interface definitions and wrapper improvements.
Wrapping default behavior can now be overridden.
2019-02-15 21:03:43 +01:00
Cory Slep d3b0afef5e Finish porting the core of pub. 2019-02-14 21:51:57 +01:00
Cory Slep c194883a93 More pub progress.
- Constructors for various Actor types.
- Continue porting the default implementations.
- Rethinking life.
2019-02-12 22:43:01 +01:00
Cory Slep 16af404462 First pass converting to new pub library.
Still a lot to do:
- Delete old deliverer folder
- Revisit handler funcs
- Constructors
- Side effects for the wrapped callback functions
- Any other TODOs
2019-02-12 00:16:33 +01:00