Commit graph

103 commits

Author SHA1 Message Date
36fb1cff52 ezidam: on launch: in testing environment, use premade keys, else generate them 2023-03-12 19:20:00 +01:00
d62cfcd1d9 ezidam: added jwks route in well-known 2023-03-12 18:46:58 +01:00
8c37fc1181 database: added keys migration, get/insert, insert keys at launch if none are present 2023-03-12 18:45:55 +01:00
7f11016a34 openid: fix ambiguous error 2023-03-12 14:21:36 +01:00
d7783a2002 ezidam: tests: openid configuration 2023-03-12 14:19:03 +01:00
2d0d6857ce ezidam: added openid configration, well known route 2023-03-12 14:08:39 +01:00
44506422e9 jwt: added key rsa key generation, import/export, jwk as PS256 2023-03-12 14:04:16 +01:00
e1ec84f7c6 database_pool: build.rs: fixed path of migrations 2023-03-11 13:05:51 +01:00
1695eca466 auth: wip: sign in page and form, need to finish 2023-03-11 00:38:13 +01:00
d790d2ff29 users: get user by id, email, username 2023-03-11 00:33:58 +01:00
b8f6cae85e ci: use latest version of rust 2023-03-10 19:01:58 +01:00
4ff866090b templates: added header, with menu system 2023-03-10 18:41:57 +01:00
fe6ab1bd71 templates: added shell page with footer 2023-03-08 23:14:30 +01:00
6654faf2af templates: added utils: logo and logo for header 2023-03-08 23:14:09 +01:00
f22563b3ec templates: moved pages to pages 2023-03-08 23:13:27 +01:00
5b8fef624d avatar: return 404 if user does not exist 2023-03-08 23:11:33 +01:00
1fd7901037 clippy: FlashKind: implement from instead of into 2023-03-08 00:27:20 +01:00
2d714f4220 generate avatar for users with identicon, cache them 2023-03-08 00:16:40 +01:00
7ab34825ad id: implement rocket FromParam 2023-03-08 00:15:34 +01:00
e04de752ef user: get one by id 2023-03-08 00:15:00 +01:00
5404fb1cf8 minor updates 2023-03-07 22:53:06 +01:00
bd1530a4e2 ezidam: ability to cache routes as well as types 2023-03-07 22:52:06 +01:00
2054b6835f ezidam: cache for one hour css and js files 2023-03-07 19:22:44 +01:00
8f951a55d7 setup: updated logo url 2023-03-07 19:05:44 +01:00
cf9fb61f80 setup: show flash 2023-03-07 19:00:14 +01:00
c670201b86 settings: add base url, WIP flash system 2023-03-07 08:42:23 +01:00
f2bea92272 testing setup route 2023-03-06 00:34:45 +01:00
55fd5565d7 database_pool: rebuild on new migration 2023-03-05 23:37:03 +01:00
f949f7606d ezidam: conversion of error types 2023-03-05 23:36:48 +01:00
2425a4cb50 ezidam: setup: redirect to /setup if setup is not complete, create first user, redirect to / if setup is complete 2023-03-05 23:36:33 +01:00
c95800330a ezidam: guards to check if setup is complete or not 2023-03-05 23:34:47 +01:00
bb3e4dfd40 ezidam: minor stuff 2023-03-05 23:34:06 +01:00
a3866b0af2 settings: store id of first admin user 2023-03-05 23:33:10 +01:00
3e168c19bc users: migrations, queries, users crate: create user, get first admin user 2023-03-05 23:31:10 +01:00
8af226cd05 hash: hash crate for all hashing needs, password 2023-03-05 23:28:14 +01:00
7851fdae1e id: added id create for handling ID needs 2023-03-05 23:27:34 +01:00
a5eafc49f5 settings: split in multiple modules 2023-03-05 15:13:23 +01:00
33cc5b03e9 idiomatic file paths for modules
https://doc.rust-lang.org/book/ch07-05-separating-modules-into-different-files.html#alternate-file-paths
2023-03-05 11:18:15 +01:00
fa1498bb67 tests: testing getting default logo 2023-03-05 00:42:36 +01:00
a4ff4bca20 refactor main into lib, with function to set up rocket 2023-03-05 00:35:34 +01:00
279f0bfaa3 Enum Page to render templates with content from a struct, set html titles, with rocket responder
For each Struct to be rendered in template, put in a mod called "content" for easy importing
2023-03-03 22:02:32 +01:00
49a46acef3 removed StatusCode, use Status directly 2023-03-01 22:54:13 +01:00
65bfd02fbf error templates: use tabler, and use same template for all errors 2023-02-28 22:21:31 +01:00
05b1a597ea added tabler static files, serving them from / 2023-02-28 22:20:10 +01:00
7ed2f4c922 first route! get logo from database 2023-02-28 17:28:55 +01:00
a85f29d3a8 error: added error catchers, error responder to respond with template, basic error templates 2023-02-28 17:28:16 +01:00
27cc4c0956 added file_from_bytes 2023-02-28 17:24:57 +01:00
95b908836e added response_timer 2023-02-28 17:24:40 +01:00
44793eb8d4 docker 2023-02-27 16:48:42 +01:00
a85c1431c8 added settings crate, creating settings on web startup 2023-02-27 16:17:51 +01:00