diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-29 16:15:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-29 16:15:41 +0200 |
commit | ad513607a3886cfabe083531c42911bc3c67bdfb (patch) | |
tree | 275af782814ad3aa62da4834ec5696467aacdd87 /server/helpers/custom-jsonld-signature.ts | |
parent | f0a47bc92aa20b91b46197a4d3fc430aea962848 (diff) | |
download | PeerTube-ad513607a3886cfabe083531c42911bc3c67bdfb.tar.gz PeerTube-ad513607a3886cfabe083531c42911bc3c67bdfb.tar.zst PeerTube-ad513607a3886cfabe083531c42911bc3c67bdfb.zip |
Remove old JSON LD signature implementation
Only PeerTube was compatible with it, and the library has moved on
RsaSignature2018 and removed RsaSignature2017 support. We had to create
a dirty fork of the RsaSignature2017 branch, which is not ideal.
Now we use the Mastodon implementation, that most other AP
implementations that support JSONLD signatures use.
Diffstat (limited to 'server/helpers/custom-jsonld-signature.ts')
-rw-r--r-- | server/helpers/custom-jsonld-signature.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/helpers/custom-jsonld-signature.ts b/server/helpers/custom-jsonld-signature.ts index a3bceb047..cb07fa3b2 100644 --- a/server/helpers/custom-jsonld-signature.ts +++ b/server/helpers/custom-jsonld-signature.ts | |||
@@ -1,6 +1,5 @@ | |||
1 | import * as AsyncLRU from 'async-lru' | 1 | import * as AsyncLRU from 'async-lru' |
2 | import * as jsonld from 'jsonld' | 2 | import * as jsonld from 'jsonld' |
3 | import * as jsig from 'jsonld-signatures' | ||
4 | import { logger } from './logger' | 3 | import { logger } from './logger' |
5 | 4 | ||
6 | const CACHE = { | 5 | const CACHE = { |
@@ -79,6 +78,4 @@ jsonld.documentLoader = (url, cb) => { | |||
79 | lru.get(url, cb) | 78 | lru.get(url, cb) |
80 | } | 79 | } |
81 | 80 | ||
82 | jsig.use('jsonld', jsonld) | 81 | export { jsonld } |
83 | |||
84 | export { jsig, jsonld } | ||