Commit Graph

15 Commits

Author SHA1 Message Date
Quentin Gliech
82afe9471c Better frontend assets handling and move the react app to /account/ (#1324)
This makes the Vite assets handling better, namely:

 - make it possible to include any vite assets in the templates
 - include the right `<link rel="preload">` tags for assets
 - include Subresource Integrity hashes
 - pre-compress assets and remove on-the-fly compression by the Rust server
 - build the CSS used by templates through Vite

It also moves the React app from /app/ to /account/, and remove some of the old SSR account screens.
2023-07-06 15:30:26 +02:00
Quentin Gliech
43e2fc961d Fix the upstream oauth registration form 2023-06-30 11:24:26 +02:00
Quentin Gliech
18518aca4f Fix the disabled state in form inputs 2023-06-29 14:01:00 +02:00
Quentin Gliech
791dad7efd Save the imported attributes 2023-06-26 17:24:56 +02:00
Quentin Gliech
3c29d998fe Ground work to import upstream OIDC claims on registration. 2023-06-26 17:24:56 +02:00
Quentin Gliech
5d14582686 Make password-based login optional 2023-05-23 17:02:02 +02:00
Quentin Gliech
99e05b4a4f Fix the authorization grant template
It previously relied on the client being in the authorization grant,
which is not the case anymore. This commit also adds a test to ensure
we're not breaking this template in the future.
2023-01-31 16:50:48 +01:00
Quentin Gliech
84f86c7230 template: more cleanups 2022-12-08 15:29:15 +01:00
Quentin Gliech
2c32ff4917 data-model: simplify users and sessions 2022-12-08 15:29:15 +01:00
Quentin Gliech
944f44792e Save the post auth action during upstream OAuth login 2022-12-05 19:39:51 +01:00
Quentin Gliech
ecf7fd7018 WIP: Provider list on the login page 2022-12-05 19:39:51 +01:00
Quentin Gliech
d1ce3628a6 Tidy up upstream linking templates 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
c1aad59e18 Do not embed the templates and static files in the binary 2022-11-18 22:37:55 +01:00