w3c / activitystreams

Activity Streams 2.0
https://www.w3.org/TR/activitystreams-core/
Other
278 stars 62 forks source link

Add the Web security namespace to @context #477

Open evanp opened 6 years ago

evanp commented 6 years ago

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 commented 5 years ago

@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 commented 5 years ago

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

cwebber commented 5 years ago

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.