Quentin Gliech
|
89420a2cfc
|
Refactor the upstream link provider template logic
Also adds tests for new account registration through an upstream oauth2
provider
|
2023-11-13 14:11:30 +01:00 |
|
Quentin Gliech
|
8984cc703b
|
Add instance privacy policy, TOS and imprint, and loads of design cleanups
|
2023-10-30 15:55:15 +01:00 |
|
Quentin Gliech
|
efbd7b5e91
|
Better errors on client authorization failures
Before it would just return a 500, now it displays a proper error
message
|
2023-10-06 15:20:27 +02:00 |
|
Quentin Gliech
|
6ff549f5df
|
templates: fix the _ function not working in macros
|
2023-10-05 19:29:23 +02:00 |
|
Quentin Gliech
|
1feafc1d13
|
handlers/templates: infer the language from the Accept-Language browser header
|
2023-10-05 19:29:23 +02:00 |
|
Quentin Gliech
|
730ad4674b
|
axum-utils: Accept-Language header encoder and decoder
|
2023-10-05 19:29:23 +02:00 |
|
Quentin Gliech
|
f20c8d8ef3
|
Infer client IP address from the peer address and the X-Forwarded-Proxy header
|
2023-09-20 20:24:30 +02:00 |
|
Quentin Gliech
|
54071c4969
|
Make the HTTP client factory reuse the underlying client
This avoids duplicating clients, and makes it so that they all share the same connection pool.
|
2023-09-14 16:52:01 +02:00 |
|
Quentin Gliech
|
0bb34ed3e0
|
Add the Sentry event ID in error response headers
|
2023-09-08 15:19:43 +02:00 |
|
Quentin Gliech
|
23571e87ea
|
Run the registration policy on upstream OAuth registration
|
2023-08-30 19:39:39 +02:00 |
|
Quentin Gliech
|
7fcd022eea
|
Make sure we validate passwords & emails by the policy at all stages
Also refactors the way we get the policy engines in requests
|
2023-08-30 19:39:39 +02:00 |
|
Quentin Gliech
|
17e28f56c1
|
Upgrade Rust to 1.72.0
Fixes new clippy errors and upgrade other tools
|
2023-08-28 18:05:56 +02:00 |
|
Quentin Gliech
|
a39f71c181
|
Handle cookies better by setting the right flags & expiration
|
2023-08-25 14:35:46 +02:00 |
|
Quentin Gliech
|
68db56c2a2
|
Reimplementation of a postgres-backed storage with a shared PG listener
|
2023-07-17 19:04:06 +02:00 |
|
Quentin Gliech
|
08f58db08b
|
Replace the OTEL-based tracing layer with tracing based layers
|
2023-04-18 14:45:43 +02:00 |
|
Quentin Gliech
|
8a2be43fe7
|
Proactively provision users on registration & sync threepids
|
2023-04-14 10:22:22 +02:00 |
|
Quentin Gliech
|
792d3c793b
|
Convert many match/if expressions to let-else
|
2023-02-01 10:37:04 +01:00 |
|
Quentin Gliech
|
87914cbcb3
|
Capture better errors in Sentry
|
2023-01-31 16:25:15 +01:00 |
|
Quentin Gliech
|
875025467e
|
Log more errors and setup Sentry integration
|
2023-01-30 18:04:44 +01:00 |
|
Quentin Gliech
|
4d53e210b3
|
axum-utils: remove an unnecessary ?Sized bound
|
2023-01-27 10:30:59 +01:00 |
|
Quentin Gliech
|
d14ca156ad
|
storage: split the repository trait
|
2023-01-24 16:05:14 +01:00 |
|
Quentin Gliech
|
a9facab131
|
Box the repository everywhere
|
2023-01-20 17:53:04 +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
|
3798f25f7d
|
Fix rustdoc lints
|
2023-01-18 12:25:49 +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
|
9f0c9f1466
|
storage: cleanup access/refresh token lookups
|
2023-01-11 12:14:52 +01:00 |
|
Quentin Gliech
|
603a26eabd
|
storage: oauth2 session repository
|
2023-01-05 16:44:56 +01:00 |
|
Quentin Gliech
|
09a567ab17
|
storage: OAuth2 client repository
|
2023-01-04 16:30:32 +01:00 |
|
Quentin Gliech
|
53172d6a3f
|
strorage: browser session and user password repositories
|
2023-01-03 15:58:01 +01:00 |
|
Quentin Gliech
|
ca112d45e1
|
ci: Update clippy to 1.66 and fix new warnings
|
2022-12-16 18:16:18 +01:00 |
|
Quentin Gliech
|
102571512e
|
storage: unify most oauth2 related errors
|
2022-12-08 15:29:15 +01:00 |
|
Quentin Gliech
|
b7cad48bbd
|
storage: unify user operations 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
|
12ce2a3d04
|
data-model: simplify the authorization grants and sessions
|
2022-12-08 15:29:15 +01:00 |
|
Quentin Gliech
|
92d6f5b087
|
data-model: simplify the oauth2 clients
|
2022-12-08 15:29:15 +01:00 |
|
Quentin Gliech
|
feebbd0e97
|
data-model: simplify users and sessions
|
2022-12-08 15:29:15 +01:00 |
|
Quentin Gliech
|
dff2f98167
|
data-model: simplify tokens
|
2022-12-08 15:29:15 +01:00 |
|
Quentin Gliech
|
23fd833d45
|
Save the post auth action during upstream OAuth login
|
2022-12-05 19:39:51 +01:00 |
|
Quentin Gliech
|
bf432a31e1
|
OIDC account linking and login
|
2022-12-05 19:39:51 +01:00 |
|
Quentin Gliech
|
4227fa7a83
|
Add a global HTTP client factory
|
2022-12-05 19:39:51 +01:00 |
|
Quentin Gliech
|
d514a8922c
|
Cleanup HTTP client building
|
2022-12-05 19:39:51 +01:00 |
|
Quentin Gliech
|
c76a1dd2e7
|
Bump the latest axum rc
|
2022-11-18 14:57:22 +01:00 |
|
Quentin Gliech
|
78778648ca
|
Allow fetching more nodes by their IDs
|
2022-11-18 13:43:01 +01:00 |
|
Quentin Gliech
|
c13b0478e6
|
Initial GraphQL API
|
2022-11-09 19:17:12 +01:00 |
|
Quentin Gliech
|
2d2127dcdb
|
More cleanups
|
2022-11-02 18:59:00 +01:00 |
|
Quentin Gliech
|
b7c50b5403
|
Pass time and RNG in CSRF verification methods
|
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 |
|
Quentin Gliech
|
e2142f9cd4
|
Database refactoring
|
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 |
|