activitystreams icon indicating copy to clipboard operation
activitystreams copied to clipboard

Add the Web security namespace to @context

Open evanp opened this issue 7 years ago • 3 comments

The Security Vocabulary is used for declaring public keys for ActivityPub when signing requests using HTTP Signatures. Because this is pretty common, we should include the namespace in the AS2 context doc, so that implementors don't have to juggle it in their documents.

I suggest adding a line like this to the AS2 context:

"sec": "https://w3id.org/security#"

evanp avatar May 09 '18 17:05 evanp

@puckipedia had an objection to this based on typing certain properties as IDs. If we add aliases for properties, will that solve the problem?

evanp avatar Sep 12 '18 18:09 evanp

Also, can we get 2 examples of using this namespace? I know Mastodon does. Any others?

evanp avatar Sep 12 '18 18:09 evanp

That should solve the problem... the alternate option is to recursively pull in the security context. However, there's some risks that terms will be clobbered that way. ActivityStreams terms should always override any other terms.

cwebber avatar Sep 12 '18 22:09 cwebber