Wykres commitów

61 Commity (0efe47743ece1620b9548d692d51989290457452)

Autor SHA1 Wiadomość Data
Maxence Lange 0efe47743e fixing psalm
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-01-04 22:38:31 -01:00
Maxence Lange 17699ac911 fix digest, error on curl
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2022-11-24 09:27:40 -01:00
Maxence Lange a7f910a693 filter request-target from header
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2022-11-23 11:40:06 -01:00
Maxence Lange 3bce7b4dd1 -TNCRequest
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2022-11-23 10:08:21 -01:00
Maxence Lange 62a8215325 cleaning code
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2022-11-03 13:23:07 -01:00
Carl Schwan 9061a6812e Embeed tools lib
And fix method signature for 25

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-20 09:41:40 +02:00
Carl Schwan d868df186b
Merge pull request #1179 from mnd/peertube-interoperability-fix
Allow to follow to PeerTube 3.0.0 users
2022-05-12 11:06:10 +02:00
Carl Schwan 2e0bef515e Create instance if it doesn't exist
Currently mostly with dummy data, we need to expose these options to the
admin

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-12 09:36:59 +02:00
Carl Schwan 637924a13f Port away from private OC::$server->get
And fix a few psalm issues

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-11 18:22:54 +02:00
Carl Schwan 46df90a0fb Add psalm static analysis
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-15 17:40:33 +02:00
Carl Schwan 9e20993c4d Php cs:fix
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-15 13:35:51 +02:00
Carl Schwan be80ca5d0f Update to php 7.4 type hinting
Using rector

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-15 13:02:31 +02:00
Maxence Lange 250be300bd minimum elements for headers
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2021-03-18 18:34:07 -01:00
Maxence Lange bbe59a942a check content-length and digest
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2021-03-18 18:10:48 -01:00
Nikolai Merinov e577395e40 Allow to follow to PeerTube 3.0.0 users
Solved three issues:
* lib/Service/ConfigService.php: With "Accept: application/json" PeerTube
  returns user page in HTML format. Replace header with
  "Accept: application/ld+json".
* lib/Service/CurlService.php: Do not broke "$host" variable if host-meta
  resultion failed.
* lib/Service/SignatureService.php: POST to https://framatube.org/accounts/fsf/inbox
  ends with error "(request-target) was not a signed header". Added
  (request-target) to signature.

Signed-off-by: Nikolai Merinov <nikolai.merinov@member.fsf.org>
2021-01-10 04:00:01 -05:00
Maxence Lange c9afc0c104
Merge pull request #1136 from mnd/support-unquoted-signature
Support unquoted fields in Signature header
2020-12-02 22:30:31 -01:00
Maxence Lange 6866088431 using TNC20Request
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-11-30 23:58:32 -01:00
Nikolai Merinov 7e5b4b2881 Support unquoted fields in Signature header
Signed-off-by: Nikolai Merinov <nikolai.merinov@member.fsf.org>
2020-11-22 11:20:20 -05:00
Maxence Lange db9a804de0 fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-08-22 01:51:40 -01:00
Maxence Lange 745810e2b0 database & requests
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-06-17 12:41:58 -01:00
Maxence Lange fbe4ea9012 rewrite sql to use ExtendedQueryBuilder
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-09-29 17:41:47 +02:00
Maxence Lange ea34bc6e70 cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-09-25 14:07:24 +02:00
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