Quentin Gliech
|
a9facab131
|
Box the repository everywhere
|
2023-01-20 17:53:04 +01:00 |
|
Quentin Gliech
|
876bc9fcb3
|
handlers: extract the PgRepository from the request
Also fix a bunch of clippy errors & doctests
|
2023-01-18 18:22:13 +01:00 |
|
Quentin Gliech
|
9005931e2a
|
handlers: box the rng and clock, and extract it from the state
|
2023-01-18 17:49:59 +01:00 |
|
Quentin Gliech
|
142fdbd45a
|
storage: make the Clock a trait
|
2023-01-18 12:20:30 +01:00 |
|
Quentin Gliech
|
73a921cc30
|
Split the storage trait from the implementation
|
2023-01-18 10:38:22 +01:00 |
|
Quentin Gliech
|
195203823a
|
storage: wrap the postgres repository in a struct
|
2023-01-13 18:03:37 +01:00 |
|
Quentin Gliech
|
488a666a8d
|
storage: remaining oauth2 repositories
- authorization grants
- access tokens
- refresh tokens
|
2023-01-12 18:26:04 +01:00 |
|
Quentin Gliech
|
36396c0b45
|
storage: repository pattern for the compat layer
|
2023-01-12 15:41:26 +01:00 |
|
Quentin Gliech
|
9f0c9f1466
|
storage: cleanup access/refresh token lookups
|
2023-01-11 12:14:52 +01:00 |
|
Quentin Gliech
|
920869b583
|
storage: do less joins in compat sessions
|
2023-01-10 18:49:35 +01:00 |
|
Quentin Gliech
|
e26f75246d
|
storage: Load with less joins
This is done to simplify some queries, to avoid loading more data than
necessary, and in preparation of a proper cache layer
|
2023-01-04 18:06:17 +01:00 |
|
Quentin Gliech
|
3bca5ab9be
|
Add the standard API scope to the compat token introspection
|
2022-12-28 11:33:53 +01:00 |
|
Hugh Nimmo-Smith
|
61b14a08b3
|
Make the introspection endpoint return JSON error responses
|
2022-12-14 16:33:27 +01:00 |
|
Quentin Gliech
|
102571512e
|
storage: unify most oauth2 related errors
|
2022-12-08 15:29:15 +01:00 |
|
Quentin Gliech
|
f7f65e314b
|
storage: unify the compat login errors
|
2022-12-08 15:29:15 +01:00 |
|
Quentin Gliech
|
4227fa7a83
|
Add a global HTTP client factory
|
2022-12-05 19:39:51 +01:00 |
|
Quentin Gliech
|
78778648ca
|
Allow fetching more nodes by their IDs
|
2022-11-18 13:43:01 +01:00 |
|
Quentin Gliech
|
2d2127dcdb
|
More cleanups
|
2022-11-02 18:59:00 +01:00 |
|
Quentin Gliech
|
368a9282a1
|
Cleanups
|
2022-11-02 18:59:00 +01:00 |
|
Quentin Gliech
|
559181c2c3
|
Pass the rng and clock around
|
2022-11-02 18:59:00 +01:00 |
|
Kévin Commaille
|
80d317f23c
|
Add variants for unknown values on mas-iana types
Remove the Copy derive and mark enums as non-exhaustive.
|
2022-09-28 13:43:39 +02:00 |
|
Quentin Gliech
|
fa47f6e150
|
Upgrade axum to 0.6.0-rc.1
|
2022-09-06 13:11:54 +02:00 |
|
Quentin Gliech
|
8c25dc03ce
|
Move the Encrypter from the config to the keystore
|
2022-09-02 15:37:46 +02:00 |
|
Quentin Gliech
|
0fcecfa7fb
|
Handle legacy /refresh
|
2022-05-19 10:17:49 +02:00 |
|
Quentin Gliech
|
309c89fc4f
|
Handle legacy token expiration & refresh tokens
|
2022-05-19 10:17:49 +02:00 |
|
Quentin Gliech
|
c4fa87e457
|
Better data-model for compat sessions & devices
|
2022-05-19 10:17:49 +02:00 |
|
Quentin Gliech
|
1aff98bdb3
|
Working legacy login endpoint
|
2022-05-19 10:17:49 +02:00 |
|
Quentin Gliech
|
0f7484beee
|
Axum migration: /oauth2/introspection
|
2022-04-06 17:35:29 +02:00 |
|
Quentin Gliech
|
62f633a716
|
Move clients to the database
|
2022-03-08 19:07:46 +01:00 |
|
Quentin Gliech
|
2df40762a2
|
Dedicated HTTP server/client crate
Also have better names for the HTTP routes
|
2022-02-10 16:38:16 +01:00 |
|
Quentin Gliech
|
7e24cd0948
|
Move secrets and oauth2 clients config
|
2022-02-01 09:34:55 +01:00 |
|
Quentin Gliech
|
c0e5b66ea4
|
Move public base URL from oauth2 config to http config
|
2022-02-01 09:34:55 +01:00 |
|
Quentin Gliech
|
5b9c35a079
|
Use iana generated types in more places
|
2022-01-12 12:22:54 +01:00 |
|
Quentin Gliech
|
a55e8af2c8
|
Cut down a lot on compilation time
|
2021-12-17 19:55:22 +01:00 |
|
Quentin Gliech
|
2f97ca685d
|
Split the core crate
|
2021-12-17 18:04:30 +01:00 |
|