Matthias Pfefferle
2705172b77
Fix some signature and application user issues ( #410 )
...
* Fix some signature and application user issues
* it seems that firefish needs at least an inbox also for application users
* prepare domain change
* use https
* fix PHPDoc
* remove image check
---------
Co-authored-by: Matt Wiebe <wiebe@automattic.com>
2023-09-01 18:32:56 +02:00
Matthias Pfefferle
3834288922
fix issue with API endpoint of WordPress.com
2023-07-25 14:34:14 +02:00
Matthias Pfefferle
359eabf671
use collection instead of factory
2023-07-03 11:20:44 +02:00
Matthias Pfefferle
75a77b3f5c
finalize account handling
...
still missing: publishing
2023-06-28 18:02:14 +02:00
Matthias Pfefferle
d251060624
migrated missing parts
2023-06-27 14:29:42 +02:00
Matthias Pfefferle
112eb51af1
updated signature feature to new structure
2023-06-27 14:29:42 +02:00
Matthias Pfefferle
e1fd0e1c39
move signature to user object
2023-06-27 14:28:52 +02:00
Matthias Pfefferle
00dd5d2c52
some phpdoc
2023-06-01 11:05:47 +02:00
Matthias Pfefferle
b834666eda
add missing slash
2023-06-01 10:44:05 +02:00
Matthias Pfefferle
9118e50623
fix signature verification path
2023-06-01 10:25:18 +02:00
Matthias Pfefferle
c1bf6691c1
fix route issues
2023-06-01 10:13:49 +02:00
Matthias Pfefferle
96881b940a
some refactorings and fixed the tests
2023-06-01 09:49:40 +02:00
Django Doucet
73cd19ec20
added test and pre_get_remote_key filter
2023-05-31 23:23:40 -06:00
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