Maxence Lange
cd04709735
some fixes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-08-23 13:03:43 -01:00
Maxence Lange
487a8da2b3
refresh publickey on signature issue
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-08-12 17:44:44 -01:00
Maxence Lange
c64f502718
cleaner signature process
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-11 18:55:00 -01:00
Maxence Lange
a7f7c0368d
rewrite of the url/host config
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-11 14:20:09 -01:00
Maxence Lange
c16f477e73
fixing headers
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-09 18:54:51 -01:00
Maxence Lange
502d94316b
fixing
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-09 10:39:52 -01:00
Maxence Lange
6f549f0b64
compat pleroma
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-09 10:39:52 -01:00
Maxence Lange
e85bb3495c
fixing signature check
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-06-21 10:21:15 -01:00
Maxence Lange
a1221cacf6
new announce system
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
gotActor->hasActor
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
retrieve Person if missing
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
fix async
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
avoid async duplicate
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
fixing
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-06-20 22:59:40 -01:00
Maxence Lange
37dd4f763e
more loggin
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-06-12 16:34:56 -01:00
Maxence Lange
ec822a440b
cleaning code
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-17 09:19:45 -01:00
Maxence Lange
d565151374
Merge pull request #374 from nextcloud/feature/noid/announce
...
[huge] Announce object and caching during incoming request
2019-03-05 08:16:00 -01:00
Maxence Lange
d356e780aa
add default context object, in case cache is empty and website is down
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-24 20:55:35 -01:00
Maxence Lange
c200b083f0
Generating cache of context documents
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-23 21:27:29 -01:00
Maxence Lange
0eb4faa37a
create object even if it can't be signed
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-22 09:33:55 -01:00
Maxence Lange
accf7e424d
implementing caching for incoming request
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-24 10:50:03 -01:00
Julius Härtl
13d61f6507
Merge pull request #336 from nextcloud/feature/noid/not-json-exception-on-request
...
throw RequestResultNotJsonException on unusual result
2019-01-19 12:48:59 +01:00
Maxence Lange
5d48497717
+RequestResultNotJsonException
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-15 12:30:02 -01:00
Maxence Lange
f4cd1310c0
signature can be 5min old
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-15 09:20:45 -01:00
Maxence Lange
3e9ca2f940
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-04 09:28:58 -01:00
Maxence Lange
c9a2adafbb
there is no use to check twice
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-03 15:49:31 -01:00
Maxence Lange
4d8c69671c
no need tor format()
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-03 09:22:22 -01:00
Maxence Lange
638e20d3fc
using signature date as 'creation' date
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-03 09:21:21 -01:00
Maxence Lange
88a19839c8
on signature check fail, update public key
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-02 23:49:00 -01:00
Julius Härtl
6b74286bd0
Merge pull request #283 from nextcloud/code/noid/rewrite-exception-on-request
...
[huge] rewrite of the exceptions while requesting remote instance
2019-01-02 23:31:23 +01:00
Maxence Lange
ed98204d47
rewrite of the exceptions while requesting remote instance
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-29 13:07:57 -01:00
Maxence Lange
7a7462bfe8
assuming the host is the address of the account
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-26 22:38:23 -01:00
Maxence Lange
89c8d9718b
validate host
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-26 22:33:46 -01:00
Maxence Lange
90f18ea621
switch to getInsecureServerHost
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-26 22:21:17 -01:00
Maxence Lange
b5b5690ab8
enabling sha512
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 15:51:09 -01:00
Maxence Lange
df4fbf9589
oops, we're not sure the key exists.
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 11:43:08 -01:00
Maxence Lange
4bda4a242e
add algorithm="" to header - #238
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 11:40:34 -01:00
Maxence Lange
fb8e11a000
including the host
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 11:26:39 -01:00
Maxence Lange
2a41f1ea1d
signed header generation moved to SignatureService
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 11:22:48 -01:00
Maxence Lange
c6943191f9
unused import
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 08:54:54 -01:00
Maxence Lange
b7e3a6dc2b
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-19 18:55:54 -01:00
Maxence Lange
a636ec03a3
set the source of the signature (header or ld-json signature)
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-19 16:50:17 -01:00
Maxence Lange
1dda85adaa
cleaning on moving post-merge
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-19 00:14:24 -01:00
Maxence Lange
a1f0ff0198
renaming services
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-17 08:12:27 -01:00