0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-05-17 22:56:59 +00:00
Files
libsql/libsql-server/src/http
shopifyski 3b978fe086 Jw/changing how jwt is passed around (#1130)
* wip - passing userauthcontext instead of http headers

* revert comment out

* fixed temp change

* Merge branch 'main' into jw/changing-how-jwt-is-passed-around

* fixed failing tests

* next iteration of unit test fixing

* fixed remaining unit tests

* reverted debug

* removed accidentally added file

* moved str to userauthcontext conversion to from trait

* remove vague comment

* cargo fmt

* cleaned up mod reimportss

* refactored cryptic matching in replica_proxy

* marked potentially duplicate code with // todo dupe #auth

* refactored context to custome errors

* added a factory to produce empty UserAuthContext

* added constructors for UserAuthContext

* switched from try_into to using constructors

* cargo fmt

* added tests for failing cases in parsers

* cargo fmt

* added test for non-asci error

* fixed log message

* removed unnecessary error mapping

* turned context to result

* removing dummy tokens from tests

* cargo fmt + cleanup

---------

Co-authored-by: Julian <julian@Julians-MacBook-Pro.local>
2024-03-15 15:29:39 +00:00
..
2024-03-14 11:35:20 +00:00
2023-10-17 17:41:26 +02:00