Commit graph

212 commits

Author SHA1 Message Date
Tobie Morgan Hitchcock
1015a948fd Add alias for WebSocket RPC method ‘change’ to ‘merge’ 2022-10-25 06:40:23 -07:00
Tobie Morgan Hitchcock
926356d23b Don’t allow WebSocket RPC authenticate method to be called with no token value 2022-10-25 06:40:23 -07:00
Tobie Morgan Hitchcock
d2e7a8532d Don’t respond with an id if none was specified in the WebSocket RPC query 2022-10-25 06:40:23 -07:00
Tobie Morgan Hitchcock
df8f297221 Add WebSocket RPC unset method for clearing a parameter 2022-10-25 06:40:23 -07:00
Tobie Morgan Hitchcock
70a263f799 Add code comments to WebSocket RPC methods 2022-10-25 06:40:23 -07:00
Tobie Morgan Hitchcock
a0d86248e2 Enable different output serialization formats in WebSocket RPC 2022-10-25 06:40:23 -07:00
Tobie Morgan Hitchcock
d12384f3fb Change method signature for converting strings to table names 2022-10-25 06:40:23 -07:00
Tobie Morgan Hitchcock
3cbb5eed78 Allow datetimes as an id parameter in the WebSocket RPC message 2022-10-25 06:06:02 -07:00
Tobie Morgan Hitchcock
6ff1e250de Add improved handling of different WebSocket message types 2022-10-19 23:57:05 +01:00
Rushmore Mushambi
f0eaf2bd19
Improve RPC method return types (#1384) 2022-10-19 23:54:41 +01:00
Tobie Morgan Hitchcock
c098fe3380 Respond to WebSocket ping messages with a pong message 2022-10-19 21:11:15 +01:00
Tobie Morgan Hitchcock
1becd3ab55 Don’t throw an RPC Error when no params key is specified 2022-10-19 18:57:03 +01:00
Tobie Morgan Hitchcock
65f8194a1f Fix code linting warnings 2022-10-19 15:35:42 +01:00
Tobie Morgan Hitchcock
18d69a620c Add WebSocket ping->pong message ticker 2022-10-19 14:56:43 +01:00
Tobie Morgan Hitchcock
7ed0af4750 Add support for SQL parameters in HTTP REST endpoints 2022-10-17 02:00:15 +01:00
Tobie Morgan Hitchcock
810e174c63 Code tidy up 2022-10-16 23:20:57 +01:00
Tobie Morgan Hitchcock
264f208379 Change the log identifier for web requests 2022-10-16 17:36:07 +01:00
Tobie Morgan Hitchcock
f31b7d7d17 Allow number values for JSON RPC id field 2022-10-16 17:36:07 +01:00
Tobie Morgan Hitchcock
9546b07d71 Add version method to HTTP RPC endpoint 2022-10-16 17:36:07 +01:00
Tobie Morgan Hitchcock
90a5e82e72 ENsure session is completely clearer when invalidated
Closes #1314
2022-10-04 22:26:03 +01:00
Tobie Morgan Hitchcock
d8c7efefd4 Ensure integer Record IDs are treated correctly in HTTP REST endpoints
Closes #1281
2022-10-01 15:50:39 +01:00
Tobie Morgan Hitchcock
711df70bb9 Allow namespaced claim aliases in JWT token
Closes #1269
Closes #1268
2022-09-29 07:54:48 +01:00
Rushmore Mushambi
bcac94f9d6
Add additional build metadata to version identifier (#1254) 2022-09-28 20:13:40 +01:00
Tobie Morgan Hitchcock
a96c6ff8ca Allow authentication token to be verified with or without Bearer or Basic prefix 2022-09-28 01:19:18 +01:00
Tobie Morgan Hitchcock
a82e45f461 Enable more customisable JWT verification
Closes #1244
2022-09-27 22:07:41 +01:00
Rushmore Mushambi
c064890284
Fix the build (#1248) 2022-09-27 16:35:03 +01:00
Tobie Morgan Hitchcock
abd15ec55c Use Accept header on /import and /export HTTP routes
Closes #1245
2022-09-27 15:58:20 +01:00
Tobie Morgan Hitchcock
d8953ab7f8 Ensure HTTP session is not verified multiple times 2022-09-25 23:13:29 +01:00
Tobie Morgan Hitchcock
75d1e86990 Add DEFINE TOKEN … ON SCOPE … functionality
Closes #144
2022-09-25 22:58:38 +01:00
Tobie Morgan Hitchcock
0cb865dc44 Support different Content-Type outputs on /signup and /signin routes
Closes #1223
2022-09-25 13:05:56 +01:00
Tobie Morgan Hitchcock
2fccc87fab Don’t prettify empty responses in SQL REPL 2022-09-25 10:56:57 +01:00
Tobie Morgan Hitchcock
b9603aacab Improve HTTP error messages and status codes 2022-09-25 10:56:57 +01:00
Tobie Morgan Hitchcock
b4209180b6 Ensure server listents to SIGINT/SIGTERM signals
Closes #120
2022-09-22 03:01:11 +01:00
Tobie Morgan Hitchcock
ffeb56fc7e Redirect to temporary website holding page for app interface
Closes #219
2022-09-21 01:03:38 +01:00
Tobie Morgan Hitchcock
1dd08bedaa Handle errors properly when WebSocket client disconnects improperly
Closes #181
Closes #195
Closes #140
2022-09-20 23:04:40 +01:00
Tobie Morgan Hitchcock
d6b544771f Rename function for simplicity 2022-09-19 12:28:41 +01:00
Tobie Morgan Hitchcock
a7444a7c8e Add authentication token claims data to session object
Closes #135
2022-09-17 03:05:23 +01:00
Ryan Russell
b4b2ceb187
Make readability fixes to Rust code comments (#157) 2022-09-17 02:50:10 +01:00
Tobie Morgan Hitchcock
8403238dbb Use Accept header instead of Content-Type header for client content negotiation 2022-09-16 02:19:06 +01:00
Tobie Morgan Hitchcock
b2f4101a9c Improve HTTP request error messages
Closes #153
2022-09-16 00:41:16 +01:00
Tobie Morgan Hitchcock
23d1132526 Ignore blank/empty lines in SurrealDB SQL REPL
Closes #147
2022-09-15 00:39:25 +01:00
Tobie Morgan Hitchcock
74c3b6d708 Don’t automatically unwrap errors when sending on WebSocket
Closes #140
2022-09-13 21:50:04 +01:00
Tobie Morgan Hitchcock
498b0a4530 Fix linting errors 2022-09-10 06:11:56 +01:00
Tobie Morgan Hitchcock
eba00bbca3 Add debug logging for authentication attempts 2022-09-10 05:44:45 +01:00
Tobie Morgan Hitchcock
d20851325b Allow uppercase or lowercase keys in JWT authentication tokens 2022-09-10 05:43:50 +01:00
Tobie Morgan Hitchcock
6f0ff853f8 Ensure session data is stored on the session after signup/signin 2022-09-05 00:53:35 +01:00
Tobie Morgan Hitchcock
5ca3b74e59 Add HTTP /health endpoint for checking database and datastore status
Closes #56
2022-09-01 00:28:43 +01:00
Michael Delaney
960061584d
Add support for specifying database path using env variable DB_PATH (#78) 2022-08-31 14:03:11 +01:00
Tobie Morgan Hitchcock
cdf244f0f5 Simplify command line argument verification code 2022-08-29 13:02:20 +01:00
Tobie Morgan Hitchcock
65d91b122e Add support for simpler datastore paths 2022-08-29 12:30:00 +01:00