]> cat aescling's git repositories - mastodon.git/commit
Support more variations of ActivityPub keyId in signature (#4630)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 21 Aug 2017 20:57:34 +0000 (22:57 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Aug 2017 20:57:34 +0000 (22:57 +0200)
commit72bb3e03fdf4d8c886d41f3459000b336a3a362b
treeef5e3f97195bf55d04b49ac6cdf04b6394d8f686
parentf391a4673adc6d79bb3a46b493d599a4bf6d558f
Support more variations of ActivityPub keyId in signature (#4630)

- Tries to avoid performing HTTP request if the keyId is an actor URI
- Likewise if the URI is a fragment URI on top of actor URI
- Resolves public key, returns owner if the owner links back to the key
app/controllers/concerns/signature_verification.rb
app/helpers/jsonld_helper.rb
app/lib/activitypub/activity.rb
app/lib/activitypub/activity/accept.rb
app/lib/activitypub/activity/reject.rb
app/lib/activitypub/activity/undo.rb
app/lib/activitypub/tag_manager.rb
app/services/activitypub/fetch_remote_key_service.rb [new file with mode: 0644]