Commit graph

202 commits

Author SHA1 Message Date
Yarmo Mackenbach
6f6f20d131 Implement fallback proxy policy 2020-12-10 23:23:43 +01:00
Yarmo Mackenbach
2ba601d0eb Update service providers prone to network errors 2020-12-10 23:23:26 +01:00
Yarmo Mackenbach
0efa5350a5 Gracefully handle failed network requests 2020-12-10 23:22:46 +01:00
Yarmo Mackenbach
d8a14abac3 Improve proxy policy handling, new fallback policy 2020-12-10 23:22:10 +01:00
Yarmo Mackenbach
eca111aaa7 Allow promises to reject without blocking execution 2020-12-10 23:21:22 +01:00
Yarmo Mackenbach
35b52aa6d4 Fix missing opts 2020-12-10 02:59:04 +01:00
Yarmo Mackenbach
f6638432f2 Fix browser bundling 2020-12-10 01:56:34 +01:00
Yarmo Mackenbach
e599b32dba Fix handling HKP URI 2020-12-08 02:56:54 +01:00
Yarmo Mackenbach
41b1d0767b Fix support for specifying keyservers 2020-12-08 02:29:10 +01:00
Yarmo Mackenbach
34dc50d031 Run prettier 2020-12-05 23:14:09 +01:00
Yarmo Mackenbach
b9c76b7c0e Properly reject promises 2020-12-05 23:13:44 +01:00
Yarmo Mackenbach
f49e9029e9 Improve error message 2020-12-05 23:10:48 +01:00
Yarmo Mackenbach
580510d0d0 Make claims.verify handle notations from all users 2020-11-20 23:20:26 +01:00
Yarmo Mackenbach
33f4b5c882 Make keys.process get notations from all users 2020-11-20 22:53:56 +01:00
Yarmo Mackenbach
b2503bfcab Improve regex 2020-11-20 19:40:20 +01:00
Yarmo Mackenbach
544f339dcf Fix linking to bundled openpgp 2020-11-20 09:13:08 +01:00
Yarmo Mackenbach
eb4c03004e Return undefined instead of null in case of an error 2020-11-18 20:32:36 +01:00
Yarmo Mackenbach
51bf130397 Require bundled version of openpgp 2020-11-17 02:43:59 +01:00
Yarmo Mackenbach
62df82b5c8 Allow verification of keys and claim arrays 2020-11-17 02:18:08 +01:00
Yarmo Mackenbach
f056c666cb Fix bad value return 2020-11-17 02:17:40 +01:00
Yarmo Mackenbach
de1b35a894 Add keys module 2020-11-17 02:13:56 +01:00
Yarmo Mackenbach
8b1b741124 Add User-Agent to HTTP requests 2020-11-17 02:13:06 +01:00
Yarmo Mackenbach
4f19bd9a38 Clean up directRequestHandler 2020-11-17 02:03:34 +01:00
Yarmo Mackenbach
0f58accbe2 Run prettier 2020-11-17 01:20:00 +01:00
Yarmo Mackenbach
094aca1283 Restructure code
Merge claimVerification and proofs into claims
2020-11-17 01:18:12 +01:00
Yarmo Mackenbach
c7ac3a9d34 Put proofs logic in separate file 2020-11-17 00:50:26 +01:00
Yarmo Mackenbach
2ac99ba709 Fix missing license headers 2020-11-12 18:54:40 +01:00
Yarmo Mackenbach
8e73360d46 Support xmpp via doip-proxy 2020-11-08 12:22:36 +01:00
Yarmo Mackenbach
4c6715ddb4 Run prettier on code 2020-11-08 02:07:02 +01:00
Yarmo Mackenbach
aaf9079de5 Update service provider data structure 2020-11-06 02:27:56 +01:00
Yarmo Mackenbach
d2f03d9bde Removed unused variable 2020-11-06 01:41:00 +01:00
Yarmo Mackenbach
8c14d2533c Improve handling of opts 2020-11-06 01:16:15 +01:00
Yarmo Mackenbach
86aa366ccc Remove dotenv and better handle options 2020-11-06 00:43:32 +01:00
Yarmo Mackenbach
bea7679255 Add custom request handler for DNS 2020-11-05 12:57:37 +01:00
Yarmo Mackenbach
98d7e680ef Fix body request 2020-11-05 12:57:22 +01:00
Yarmo Mackenbach
05d6986349 Handle erroneous input better 2020-11-05 12:57:13 +01:00
Yarmo Mackenbach
7be3c27397 Variable name change 2020-11-05 11:33:03 +01:00
Yarmo Mackenbach
82852217fb Add liberapay service provider 2020-11-04 22:38:03 +01:00
Yarmo Mackenbach
a9fc0e4b44 Fix dots in regex 2020-11-04 22:25:45 +01:00
Yarmo Mackenbach
eba9d48af2 Apply generateProxyURL to DNS service provider 2020-11-04 03:04:22 +01:00
Yarmo Mackenbach
2ac42a6edf Add proxyRequestHandler 2020-11-04 03:02:15 +01:00
Yarmo Mackenbach
596db98bfd Add utils.generateProxyURL 2020-11-04 03:01:02 +01:00
Yarmo Mackenbach
8a144ca24a Update DNS proxy 2020-11-04 02:41:24 +01:00
Yarmo Mackenbach
18c8662db8 Improve handling of arrays in json 2020-11-04 02:41:14 +01:00
Yarmo Mackenbach
fc66e8fce4 Minor fix 2020-11-04 02:16:59 +01:00
Yarmo Mackenbach
c786b2cc10 Fix handling of unverified proofs 2020-11-03 22:50:35 +01:00
Yarmo Mackenbach
336cbc9f83 Add discourse service provider 2020-11-03 22:23:35 +01:00
Yarmo Mackenbach
96e948b3af Add fediverse service provider 2020-11-03 00:41:03 +01:00
Yarmo Mackenbach
ed9c1a4bec Add mastodon service provider 2020-11-03 00:25:25 +01:00
Yarmo Mackenbach
2aaa1ce1e2 Make claimVerification return errors 2020-11-03 00:25:02 +01:00
Yarmo Mackenbach
9c1fdc5c4b Fix request headers 2020-11-03 00:23:50 +01:00
Yarmo Mackenbach
b04e5046ed Fix request headers 2020-11-03 00:14:19 +01:00
Yarmo Mackenbach
5dfe2412c4 Add header to request 2020-11-02 18:21:56 +01:00
Yarmo Mackenbach
7c84bd2010 Update gitlab data 2020-10-26 22:58:34 +01:00
Yarmo Mackenbach
12e638f8de Fix gitlab tests 2020-10-26 22:55:27 +01:00
Yarmo Mackenbach
f6738e978d Fix regex 2020-10-26 22:50:41 +01:00
Yarmo Mackenbach
c49cc20953 WIP Add gitlab 2020-10-26 22:33:05 +01:00
Yarmo Mackenbach
8bc187feed Fix async await 2020-10-26 21:21:11 +01:00
Yarmo Mackenbach
8d44b4f9bc Use request handlers 2020-10-26 21:18:17 +01:00
Yarmo Mackenbach
8ed689386b Add github service provider 2020-10-26 00:04:19 +01:00
Yarmo Mackenbach
391c960fa5 Add gitea service provider 2020-10-25 23:32:30 +01:00
Yarmo Mackenbach
154aba5346 Add reddit service provider 2020-10-25 23:20:22 +01:00
Yarmo Mackenbach
d2bae37e47 Add devto service provider 2020-10-25 23:06:00 +01:00
Yarmo Mackenbach
8e4ed49aec Update dns data 2020-10-25 02:01:35 +02:00
Yarmo Mackenbach
e04599962f Revert change to not interfere with bundling 2020-10-25 01:54:27 +02:00
Yarmo Mackenbach
39a74a6177 Automatically generate service provider data 2020-10-25 01:20:20 +02:00
Yarmo Mackenbach
f2fdbd3a8b Add lobsters service provider 2020-10-25 01:16:13 +02:00
Yarmo Mackenbach
5c6b0e0507 Minor change 2020-10-25 01:12:57 +02:00
Yarmo Mackenbach
cbd86d81aa Handle no matching service provider 2020-10-25 01:06:45 +02:00
Yarmo Mackenbach
bdd918df4c Minor changes 2020-10-25 01:02:21 +02:00
Yarmo Mackenbach
2b22799fff Allow opts to pass through to matching function 2020-10-25 01:02:08 +02:00
Yarmo Mackenbach
1388227fe4 Add exports 2020-10-25 00:41:06 +02:00
Yarmo Mackenbach
8bcf779d33 Modify generateClaim behavior 2020-10-25 00:39:43 +02:00
Yarmo Mackenbach
4794320d92 Update service provider data 2020-10-25 00:32:50 +02:00
Yarmo Mackenbach
118bfc1c0f Add handling of proof data 2020-10-25 00:32:12 +02:00
Yarmo Mackenbach
6e966f4df5 Add claimVerification scripts 2020-10-25 00:31:42 +02:00
Yarmo Mackenbach
1f29accb5f Add utils 2020-10-25 00:31:14 +02:00
Yarmo Mackenbach
061c834f84 Change data structure 2020-10-24 23:35:54 +02:00
Yarmo Mackenbach
33a2a7804a Change code structure 2020-10-24 20:33:34 +02:00
Yarmo Mackenbach
c262f96d4f Update code structure 2020-10-24 19:10:28 +02:00
Yarmo Mackenbach
1b1d11c802 WIP Handling of fetched data 2020-10-24 18:43:41 +02:00
Yarmo Mackenbach
55ee948111 Fix data 2020-10-24 18:29:14 +02:00
Yarmo Mackenbach
d81bf10070 Add proof.format field to service provider data structure 2020-10-24 17:30:22 +02:00
Yarmo Mackenbach
0a00ab5060 Rename function 2020-10-24 17:13:14 +02:00
Yarmo Mackenbach
81edf64046 Update the data structure used by service providers 2020-10-24 16:42:22 +02:00
Yarmo Mackenbach
fa5dee8505 Add Hackernews service provider 2020-10-24 15:50:14 +02:00
Yarmo Mackenbach
638eecee46 Add Twitter service provider 2020-10-24 15:33:51 +02:00
Yarmo Mackenbach
74d92511ec Fix handling of missing opts 2020-10-24 15:33:25 +02:00
Yarmo Mackenbach
11c0425e59 Change license to Apache-2.0 2020-10-24 15:11:14 +02:00
Yarmo Mackenbach
656ac3541d Fix handling of missing opts 2020-10-24 14:36:22 +02:00
Yarmo Mackenbach
1eb98349d2 Add license header 2020-10-24 12:05:11 +02:00
Yarmo Mackenbach
ea2b6712cd Remove obsolete code 2020-10-24 11:58:07 +02:00
Yarmo Mackenbach
ab5b4814c6 Add license header 2020-10-24 11:57:27 +02:00
Yarmo Mackenbach
1230e5b9d8 Throw error for invalid URI 2020-10-24 11:56:30 +02:00
Yarmo Mackenbach
7f24354c1d Allow verify to match the URI to a service provider 2020-10-24 11:45:30 +02:00
Yarmo Mackenbach
2521225a9b Handle missing XMPP_VCARD_SERVER_DOMAIN 2020-10-24 11:44:40 +02:00
Yarmo Mackenbach
012ef682e6 Replace URL with URI 2020-10-24 11:20:34 +02:00
Yarmo Mackenbach
b78d7a7ce9 Add URI validation 2020-10-24 11:19:35 +02:00
Yarmo Mackenbach
43b16ffbaf Replace URL with URI 2020-10-24 11:18:06 +02:00
Yarmo Mackenbach
65cf309ea7 Restructure exports 2020-10-24 01:25:01 +02:00
Yarmo Mackenbach
e8aa308baa Fix and improve service provider tests 2020-10-24 01:06:46 +02:00
Yarmo Mackenbach
e996bc8023 Initial commit 2020-10-23 22:35:53 +02:00