Django Doucet
273493e768
update header parsing in get_signed_data()
2023-05-26 12:40:46 -06:00
Matthias Pfefferle
221c577826
Fix federation with pixelfed!
2023-05-25 14:03:30 +02:00
Django Doucet
e79f2e8991
fix keyId url
2023-05-16 00:11:27 -06:00
Matthias Pfefferle
7456d36834
use const instead of -1
2023-05-15 10:48:34 +02:00
Matthias Pfefferle
7d5cfb3078
phpdoc
2023-05-12 10:17:36 +02:00
Django Doucet
fc1b89561e
If WP_REST_Request set actor for get_remote_key()
2023-05-10 19:46:52 -06:00
Matthias Pfefferle
b88c5f606d
fixed copy/paste issue
2023-05-09 12:17:48 +02:00
Matthias Pfefferle
c872cb69d0
remove var_dump :(
2023-05-09 12:13:35 +02:00
Matthias Pfefferle
180e882c4a
generate key if not existent
2023-05-09 12:12:05 +02:00
Matthias Pfefferle
c42edfce68
use WP_Error
2023-05-09 11:51:53 +02:00
Matthias Pfefferle
378f5dacdc
fix issue with missing array
2023-05-09 11:32:26 +02:00
Django Doucet
abedf014ae
remove redundant
2023-05-05 23:56:39 -06:00
Django Doucet
afafdf1543
Add get_remote_key method
2023-05-05 23:54:29 -06:00
Django Doucet
dc8e1e0f3e
fix request-target route,
...
remove $actor from verify_http_signature
2023-05-05 23:50:49 -06:00
Django Doucet
b0edf9a765
removing logging
2023-05-05 14:43:05 -06:00
Django Doucet
9202c19730
Add secure mode to REST get requests
2023-05-05 14:39:33 -06:00
Django Doucet
14f3c3985b
code style
2023-05-05 13:00:21 -06:00
Django Doucet
c5ca061805
Add helper format_server_request
2023-05-05 12:53:43 -06:00
Django Doucet
35496f5026
get_public_key support application actor
2023-05-05 12:52:24 -06:00
Django Doucet
27636b62d5
Add Service actor for signing get requests
2023-05-05 12:02:12 -06:00
Django Doucet
b641cb03f3
fix phpcs
2023-04-21 16:16:52 -06:00
Django Doucet
023ba25f38
PHPDoc
2023-04-21 15:27:02 -06:00
Django Doucet
f396c6da4e
Optimize verification code and returns WP_Errors
2023-04-21 15:25:39 -06:00
Django Doucet
7dbce74a96
ensure signature block has algorithm
2023-04-21 09:36:17 -06:00
Django Doucet
1631f1c7dc
fix rest api endpoint
2023-04-21 09:18:24 -06:00
Matthias Pfefferle
5faddba511
this function should not work without $request
2023-04-21 08:51:25 +02:00
Django Doucet
590c990e21
phpcs
2023-04-14 23:59:04 -06:00
Django Doucet
30d78417d8
Fixes key retrieval
2023-04-14 23:53:43 -06:00
Django Doucet
e1722cd4d3
Simplify signature_algorithm
2023-04-05 13:25:39 -06:00
Django Doucet
502bf8b5a6
Get actor from key with non-standard uri
2023-04-04 19:58:08 -06:00
Django Doucet
d6169f4bc3
Add content-length header if present in sig headers
2023-04-02 20:38:10 -06:00
Django Doucet
2293c0b3d7
use verify_http_signature in validate_callback
...
rename verify_signature
2023-04-02 16:38:39 -06:00
Django Doucet
90b45438b2
cleanup
2023-04-02 00:30:17 -06:00
Django Doucet
504bbb9999
code style phpcs
2023-04-01 23:59:49 -06:00
Django Doucet
0c7cec3eba
Fix signature parse verification
2023-04-01 10:17:56 -06:00
Django Doucet
a6b057b69d
Merge branch 'master' into signature_verification
2023-03-11 16:10:29 -07:00
Alex Kirk
eff60ed5dd
Fix the signature for HTTP GET requests
2022-11-09 07:25:10 -07:00
Django Doucet
63993b20b9
fix const
2022-03-20 21:12:53 -06:00
Django Doucet
16ae895312
fixes
2022-03-20 20:57:01 -06:00
Django Doucet
1f6e1cf37c
add openss_verify method and openssl_error_string
2022-03-19 20:19:59 -06:00
Django Doucet
99630a58bb
fixes
2022-02-28 19:32:26 -07:00
Django Doucet
86c796090d
Signature Verification with phpseclib3
2022-02-28 16:11:04 -07:00
c0033d8819
fix WP coding standard issue
2020-12-17 17:39:35 +01:00
Django Doucet
0271b57844
add digest header
2020-12-09 22:23:05 -05:00
9945aa7cf8
escape global constants and functions
...
* Add leading \ before function invocation to speed up resolving.
* Add leading \ before constant invocation of internal constant to speed up resolving. Constant name match is case-sensitive, except for null, false and true.
2020-05-12 19:42:09 +02:00
2f5bf1ccc4
explicit use of global functions
2019-09-27 10:12:59 +02:00
a6d97f8ba7
(php)doc
2019-02-24 13:01:28 +01:00
40b2651b7e
big refactoring to use namespaces for a better code structure
2019-02-24 12:07:41 +01:00