Commit Graph

35 Commits

Author SHA1 Message Date
Quentin Gliech
b9eda7c9e8 Save the ID token during an upstream authorization 2022-12-05 19:39:51 +01:00
Quentin Gliech
6aca90e4d9 OIDC account linking and login 2022-12-05 19:39:51 +01:00
Quentin Gliech
19f5e2d417 WIP: handle account linking 2022-12-05 19:39:51 +01:00
Quentin Gliech
ae532a05f9 Lookup and save upstream links 2022-12-05 19:39:51 +01:00
Quentin Gliech
28704ab473 WIP: upstream OIDC provider support 2022-12-05 19:39:51 +01:00
Quentin Gliech
31e719c36e Use the sqlx QueryBuilder to build the paginated queries 2022-11-09 19:17:12 +01:00
Quentin Gliech
8bde136b35 Basic current session/user query + user emails connection 2022-11-09 19:17:12 +01:00
Quentin Gliech
94298c5ce4 Update sqlx query data 2022-11-02 18:59:00 +01:00
Quentin Gliech
d15d25358e Better DB operations tracing 2022-11-02 18:59:00 +01:00
Quentin Gliech
1043a5ada4 Do not check for token expiration from the database directly 2022-11-02 18:59:00 +01:00
Quentin Gliech
d507858596 Update the sqlx introspection data 2022-11-02 18:59:00 +01:00
Quentin Gliech
9ad66ed94d Database refactoring 2022-11-02 18:59:00 +01:00
Quentin Gliech
2281ccfcbd Remove support for the token response type 2022-09-02 13:59:10 +02:00
Quentin Gliech
d6ccab96df Update sqlx-data.json 2022-06-02 16:18:55 +02:00
Quentin Gliech
bca382ffdf Have a better error on registration if the username is already taken 2022-05-23 14:36:38 +02:00
Quentin Gliech
9a989edd79 Legacy login via m.login.sso 2022-05-23 10:42:25 +02:00
Quentin Gliech
3b2eca9e39 Handle legacy /refresh 2022-05-19 10:17:49 +02:00
Quentin Gliech
e7e8212ffc Handle legacy token expiration & refresh tokens 2022-05-19 10:17:49 +02:00
Quentin Gliech
ac95e35a7a Better data-model for compat sessions & devices 2022-05-19 10:17:49 +02:00
Quentin Gliech
8cbaee399a Prepare the storage layer for legacy refresh tkoens 2022-05-19 10:17:49 +02:00
Quentin Gliech
fb051eb2f4 Handle legacy /logout 2022-05-19 10:17:49 +02:00
Quentin Gliech
a4ee085664 Working legacy login endpoint 2022-05-19 10:17:49 +02:00
Quentin Gliech
a3f332d475 Rewrite the authorization grant logic 2022-05-06 17:12:39 +02:00
Quentin Gliech
35bb6f029e Update sqlx-data.json 2022-04-29 12:36:25 +02:00
Quentin Gliech
e272088a60 Simple consent screen and storage 2022-04-29 12:16:39 +02:00
Quentin Gliech
17238b8e97 Make the client_id a foreign key 2022-04-28 18:39:45 +02:00
Quentin Gliech
78e0a3747f Check some metadata on client registration 2022-04-21 13:34:07 +02:00
Quentin Gliech
94c3460fe7 Update sqlx query data 2022-04-19 12:30:12 +02:00
Quentin Gliech
f243624f45 Move clients to the database 2022-03-08 19:07:46 +01:00
Quentin Gliech
abc341e7ab Database model to save user email verification codes 2022-01-21 17:41:11 +01:00
Quentin Gliech
8128a6ca65 CLI subcommand to mark emails as verified 2022-01-18 18:33:05 +01:00
Quentin Gliech
4384594fc2 Email management UI
Also simplify a bunch of query strings
2022-01-18 18:16:56 +01:00
Quentin Gliech
1667b5a67f Save user emails in database 2022-01-14 18:42:37 +01:00
Quentin Gliech
e98ff94b14 Update SQLx offline query data 2022-01-14 14:07:40 +01:00
Quentin Gliech
98540cc235 Move storage module to its own crate 2021-12-17 12:15:07 +01:00