コミットグラフ

114 コミット

作成者 SHA1 メッセージ 日付
Cory Slep
1ed478582e To immediately be deleted.
I don't need this level of detail for headers. This is beyond overkill
for content negotiation. Just do something simpler.
2018-08-01 19:27:06 +02:00
Cory Slep
cfdfddfda4 Update changelog and contributing 2018-07-28 13:26:55 +02:00
Cory J Slep
50f3ddbfc5
Merge pull request #52 from 21stio/patch-1
Update README.md
2018-07-01 13:15:50 +02:00
Cory J Slep
4870298a37
Merge pull request #53 from 21stio/patch-2
Update README.md
2018-07-01 13:15:34 +02:00
Cory J Slep
c6b55cc0f2
Merge pull request #54 from 21stio/patch-3
Update README.md
2018-07-01 13:15:05 +02:00
21stio
6bea627342
Update README.md
added syntax highlighting
2018-06-25 09:45:09 +02:00
21stio
3c9368c902
Update README.md
added syntax highlighting
2018-06-25 09:44:24 +02:00
21stio
7b788cf596
Update README.md
added syntax highlighting
2018-06-25 09:43:15 +02:00
Cory Slep
af5ed41bad Remove duplicate intermediate types.
This condenses the N types and M properties from N*M intermediate type
definitions to just M intermediate type definitions. These intermediate
types are no longer generated in the gen_<TYPE>.go files, but are all
within the separate gen_intermediate.go file.

This will hopefully reduce resource consumption during compilation of
the vocab package.
2018-06-17 18:51:30 +02:00
Cory Slep
307eb259b8 Update README and other files for 0.1.1 2018-06-13 23:23:46 +02:00
Cory Slep
db08c01e85 Initial deliverer tests 2018-06-13 22:52:19 +02:00
Cory Slep
b1609bd71a Generate streams package to multiple files 2018-06-13 22:01:53 +02:00
Cory Slep
f155f0a3d0 Generate vocab package to multiple files. 2018-06-13 21:53:01 +02:00
Cory Slep
fb16747c4e Migrate Typer and type-detection functions to vocab
This helps ensure that the code to detect specific ActivityStream types
continues to live in the code-generation algorithms, reducing
maintenance burdens.
2018-06-12 23:29:30 +02:00
Cory Slep
5331dfe8e0 Add CONTRIBUTING.md 2018-06-12 00:52:55 +02:00
Cory Slep
3a2a980ca2 Add pull request template 2018-06-12 00:37:36 +02:00
Cory J Slep
052239652e Add bug report and feature request templates 2018-06-12 00:28:44 +02:00
Cory Slep
1f9eeafca8 Serve tombstone with HTTP status Gone 2018-06-09 00:03:45 +02:00
Cory Slep
2764b67c7e Remove bto & bcc before serving ActivityStream object 2018-06-08 23:45:25 +02:00
Cory Slep
45f05d97c4 PostInbox Add now adds IRIs.
As part of normalization.
2018-06-06 22:59:24 +02:00
Cory Slep
3d310d5e81 PostInbox auto Follow/Reject uses IRI only
Part of normalization of IRIs.
2018-06-06 22:53:18 +02:00
Cory Slep
7f3a6fce6b PostOutbox Add uses IRIs
Normalizes to prevent overly-embedding objects.
2018-06-06 22:49:06 +02:00
Cory Slep
a1fc177bc7 PostOutbox Create actor & attributedTo uses IRIs
Part of normalizing IRIs and preventing overly embedding objects.
2018-06-06 22:45:36 +02:00
Cory Slep
da279300a0 Followers, following, likes, liked collections use IRIs.
As part of the IRI normalization effort.
2018-06-06 22:36:49 +02:00
Cory Slep
53c59ed335 Inboxes and outboxes now contain IRIs.
As part of normalization of objects and not embedding them everywhere.
2018-06-06 22:26:48 +02:00
Cory Slep
945c79483a Use IRIs when normalizing recipients.
Part of the IRI auditing for normalization effort.
2018-06-06 22:20:52 +02:00
Cory Slep
2bc987e776 Wrapping in Create for delivery propagates IRIs only.
As part of auditing everywhere an object may become inadvertently
embedded, and prefer normalization of IRIs.
2018-06-06 21:44:10 +02:00
Cory Slep
33c5320c8f Fixes for the first c2s implementation report.
Non Interface Behavior Changes:

- Robust header detection for ActivityPub requests
- No more panic because of a Bto access after a Bcc condition
- PostOutbox Undo activities now required to have matching actors

Interface Behavior Changes:

- PostOutbox activities themselves are now passed to App.Set
- Authentication/Authorization in a SocialAPIVerifier no longer
    shadowed and ignored.
- Add activities can now fetch remote objects (not permanent)

The behavior changes are justified as having been broken bugs that would
have not met a developer's expectations. So including them as part of
the next release maintains major version 0 behavior compatibility.
2018-06-06 00:49:02 +02:00
Cory Slep
62ec7d5278 Fix logic for Accept and Content-Type headers 2018-06-03 01:29:47 +02:00
Cory Slep
2aa074e2a2 Fix typos in README 2018-05-30 23:58:05 +02:00
Cory Slep
e910e86bd6 Update all the READMEs 2018-05-30 23:48:34 +02:00
Cory Slep
0fc1556d17 Fix comments and HandlerFunc 2018-05-30 23:37:59 +02:00
Cory Slep
79f0f3f118 Add go.mod and go.modverify for vgo 2018-05-30 21:44:17 +02:00
Cory Slep
00423c0cdf Tools now pass go vet 2018-05-30 21:40:20 +02:00
Cory Slep
f9a2b1b8de Fix go vet issues 2018-05-30 21:33:05 +02:00
Cory Slep
6c1de66753 Move CanAdd & CanRemove into Application interface 2018-05-30 21:27:07 +02:00
Cory Slep
81d1000e1b Fix deliverer with *url.URL changes 2018-05-29 22:02:10 +02:00
Cory Slep
ba40dc50b4 Use *url.URL instead of url.URL.
He who fights with monsters should be careful lest he thereby become a monster.
And if thou gaze long into an abyss, the abyss will also gaze into thee.
2018-05-29 21:57:39 +02:00
Cory Slep
b8a27ed6f7 The App interfaces contain only the needed funcs
This will hopefully clarify what interfaces are needed for which kind of
implementations of ActivityPub are needed.
2018-05-29 00:04:24 +02:00
Cory Slep
abda28d2dc Remove make publicly visible errors private.
We can instead directly write HTTP status codes in these special cases,
removing the burden on library users.
2018-05-27 23:11:19 +02:00
Cory Slep
96c9afee84 Add Read and ReadWrite when getting data.
This allows implementations to prevent race conditions between
contentious objects.
2018-05-27 22:57:43 +02:00
Cory Slep
353cd20402 Prepend to ordered collections. 2018-05-27 22:16:59 +02:00
Cory Slep
bed3dbef16 Change vocab Add methods to Append and Prepend
This allows the reverse chronological order to be set as items are
easily prepended to non-functional activity stream properties.
2018-05-27 17:07:40 +02:00
Cory Slep
7f2faf98e1 Add handlers test.
Also, for all tests that use tables, log the test case being executed.
That way verbose mode will indicate which test case is causing any nil
pointer dereference or other segfault interrupts. Also, it will inform
anyone who runs in verbose mode just how many tests there really are.
2018-05-27 01:49:03 +02:00
Cory Slep
de215c8787 Add and fix tests for PostOutbox verification.
PostOutbox and the SocialAPI can now use either HTTP Signatures or a
custom authentication scheme, such as OAuth2.

Tests for the handler authentication and authorization need to be
written still.
2018-05-26 14:37:06 +02:00
Cory Slep
2986f7601b Add function to serve ActivityPub object.
This also incorporates some interface changes to permit both HTTP
Signatures and other forms of authentication and authorization when
accessing data. This means support for something like OAuth2 should be
doable in conjunction with HTTP Signatures.

Tests are broken; this commit should not be used as a build point.
2018-05-25 00:23:50 +02:00
Cory Slep
f46242ac83 Replace PostOutboxAuthorized with HTTP Signatures.
This makes the implementation conformant to §6 of the specification that
requires HTTP requests to be signed with the user's credentials.
2018-05-20 13:53:12 +02:00
Cory Slep
b9606f06f2 Fix tests for HTTP Signatures.
Also, bugfix the time.Now calls to use the federator's clock instead.
This is how it should have been done in the beginning, but is necessary
for the tests since the HTTP Signatures by default sign the dates in the
headers. And I noticed said dates were being populated by time.Now
instead of the mock-able Clock.
2018-05-19 22:16:37 +02:00
Cory Slep
ecc87da47f Add HTTP Signatures support for user credentials.
Tests are broken in this commit.
2018-05-18 23:31:18 +02:00
Cory Slep
5390174107 Add same-origin and same-actor checks.
These covers server-to-server Update and Delete activities as well as server-to-
server Undo activities, respectively.
2018-05-13 17:18:39 +02:00