Commit graph

32 commits

Author SHA1 Message Date
silverpill
e4254e7a3d Add "error" and "error_description" fields to Mastodon API error responses 2023-02-25 23:38:42 +00:00
silverpill
21054de712 Make /api/v1/statuses endpoint compatible with Mastodon clients 2023-02-19 19:38:27 +00:00
silverpill
e8ea52adba Move create_auth_error_handler function to http module 2023-02-19 17:10:29 +00:00
silverpill
10f2596830 Move config parser to mitra-config crate 2023-02-19 00:39:15 +00:00
silverpill
7d3c558ede Move utils to mitra-utils crate 2023-02-18 23:12:36 +00:00
silverpill
f1972be8db Add generate_random_sequence() function 2023-02-18 21:29:27 +00:00
silverpill
6945ded963 Group imports 2023-02-12 23:07:19 +00:00
silverpill
0988c0c91e Improve ethereum address validation and move validator to ethereum::utils module 2023-02-12 18:26:39 +00:00
silverpill
fdd3a22807 Support "authorization_code" OAuth grant type 2023-02-11 23:30:51 +00:00
silverpill
cf69f1394a Add OAuth authorization page 2023-02-11 23:30:46 +00:00
silverpill
2d9a43b076 Add /api/v1/apps endpoint 2023-02-11 17:14:37 +00:00
silverpill
01f56d9ef7 Use re-exported tokio_postgres::GenericClient trait 2023-01-18 01:01:45 +00:00
silverpill
d1939b10d5 Move DatabaseError to database module 2022-12-03 22:57:09 +00:00
silverpill
4185cbefb0 Rename Pool type to DbPool 2022-12-03 21:30:24 +00:00
silverpill
262b910638 Rename instance.host() to instance.hostname() 2022-11-24 13:27:10 +00:00
silverpill
445177d9a7 Add API method for revoking access token 2022-11-15 15:45:30 +00:00
silverpill
4d85638d8c Move password utils to utils::passwords module 2022-11-13 21:30:59 +00:00
silverpill
ea4d15da48 Remove default_currency() method from config object
Preparing for multi-currency deployments.
2022-08-28 18:53:32 +00:00
silverpill
e2f8408b1e Search for subscription recipient by DID instead of login address 2022-08-15 22:02:11 +00:00
silverpill
596871e6e3 Rewrite wallet address validator to work with non-ethereum addresses 2022-08-15 15:45:21 +00:00
silverpill
a1af46f566 Change default login message and update config example
Consider "ethereum" auth flow deprecated.
2022-04-30 16:35:54 +00:00
silverpill
30bd3d6a37 Migrate to actix 4.0 and tokio 1 2022-04-10 19:14:45 +00:00
silverpill
0727b739ed Move HTTP signature verification to receive_activity() function 2022-02-23 23:38:00 +00:00
silverpill
227e3d3729 Allow passwordless registration 2022-02-15 19:43:22 +00:00
silverpill
e8a29a3af1 Implement EIP-4361 authentication 2022-02-14 23:16:00 +00:00
silverpill
0198a944ac Log successful login attempts 2022-02-11 20:40:56 +00:00
silverpill
9f1f950aa3 Validate wallet address when logging in 2022-02-01 23:56:58 +00:00
silverpill
333f90e293 Validate wallet address when creating new user 2022-01-31 19:10:51 +00:00
silverpill
81a260e691 Don't require wallet address during registration 2021-12-24 17:52:52 +00:00
silverpill
c5e292d39f Rename SessionError to AuthError 2021-12-03 18:22:25 +00:00
silverpill
c473070fd4 Configure linter and fix its warnings 2021-11-13 17:37:31 +00:00
silverpill
f6e9c082e2 Implement Oauth 2.0 token service 2021-10-05 00:00:14 +00:00