Commit graph

30 commits

Author SHA1 Message Date
Alex Gleason
139e600b79
Switch to NIP-44 bunker encryption
https://gitlab.com/soapbox-pub/ditto/-/issues/279
2024-12-18 01:56:53 -06:00
Alex Gleason
42f5e316a8
Let bunker_pubkey be different from user pubkey 2024-10-26 18:37:26 -05:00
Alex Gleason
b4b7381b49
Implement OAuth revoke endpoint 2024-10-17 14:20:42 -05:00
Alex Gleason
8d1b1b8abc
Add encrypted captcha answer, move AES utils 2024-10-03 19:36:44 -05:00
Alex Gleason
432857c2ff
Rework auth tokens table to use hashed/encrypted data 2024-10-02 18:28:24 -05:00
Alex Gleason
ebc0250d81
DittoDB.getInstance() -> Storages.kysely() 2024-09-11 13:23:06 -05:00
Alex Gleason
552de01a17
Rework DittoDB to return an object 2024-08-11 19:02:27 -05:00
Alex Gleason
edddc5384c
Support OAuth "state" param 2024-06-12 18:04:04 -05:00
Alex Gleason
ddae4f408a
Support OAuth OOB 2024-06-11 13:40:09 -05:00
Alex Gleason
3c361cb59b
Improve OAuth form design slightly 2024-06-05 11:37:16 -05:00
Alex Gleason
7221b5f203
grant_type nostr -> nostr_bunker, connections -> nip46_tokens 2024-05-29 16:14:21 -05:00
Alex Gleason
a6a74a16a8
Have OAuth form accept a bunker URI 2024-05-28 13:48:27 -05:00
Alex Gleason
1aa2bafc44
OAuth: add a "nostr" grant_type 2024-05-26 21:26:59 -05:00
Alex Gleason
83e51ad67e
lodash -> entities 2024-05-21 12:21:35 -05:00
Alex Gleason
3b0739f187
Add a getClientConnectUri function, add "Nostr Connect" link in the OAuth form 2024-05-12 13:12:46 -05:00
Alex Gleason
928ae4ec22
oauthController: calculate the script hash on the fly so we can edit it 2024-05-12 10:56:27 -05:00
Alex Gleason
0bb4ccf5c9
Move nostr-tools to an import alias 2024-04-30 18:43:53 -05:00
Alex Gleason
0f9cc9fe51
zod import alias 2024-04-23 15:03:20 -05:00
Alex Gleason
43359f787b
web.ts -> api.ts 2024-01-01 17:03:32 -06:00
Alex Gleason
b32eaca17d
deno fmt 2023-12-17 11:03:40 -06:00
Alex Gleason
e6d1494a10
streaming: make user stream mostly work, in a kind of hacky way 2023-08-28 13:34:15 -05:00
Alex Gleason
e8a7dfef2b
Remove uneeded session ID from auth token 2023-08-28 13:00:00 -05:00
Alex Gleason
23928c0024
Move hono-related functions until utils/web 2023-08-19 14:05:08 -05:00
Alex Gleason
cc751f03a7
Refactor to use nostrDate() and nostrNow() 2023-07-08 15:04:50 -05:00
Alex Gleason
74024e36b6
Support OAuth 'client_credentials' grant type, improve Mastodon API compat 2023-05-24 11:19:02 -05:00
Alex Gleason
f3e42cc6a7
Add a UUID to auth tokens for private websocket event signing 2023-05-20 14:34:13 -05:00
Alex Gleason
9500ceee7c
Upgrade nostr-tools, fix BECH_32_REGEX imports 2023-05-20 12:28:12 -05:00
Alex Gleason
45807e29de
Fix login with Elk 2023-05-12 16:17:02 -05:00
Alex Gleason
8f65939f1c
OAuth form improvements, support NIP-07 2023-05-07 15:29:27 -05:00
Alex Gleason
610ce4444a
api --> controllers/api 2023-04-30 14:45:30 -05:00
Renamed from src/api/oauth.ts (Browse further)