Commit graph

71 commits

Author SHA1 Message Date
719048e268 ezidam: oauth: redirect page 2023-03-17 23:30:33 +01:00
fd16e78fb1 ezidam: oauth: split in multiple mods 2023-03-17 23:30:12 +01:00
8c8caa905d ezidam: oauth: redirect to redirect uri with code and state 2023-03-17 22:17:56 +01:00
ae71a6a512 ezidam: oauth: removed FormPost from ResponseModes 2023-03-17 22:17:35 +01:00
bb4ff8a9f8 ezidam: oauth: authorize: generate and save authorization code 2023-03-16 23:20:27 +01:00
471e2fc740 authorization_codes: crate, database, insert one 2023-03-16 23:15:56 +01:00
0b4aeb89cb ezidam: setup: dont sign in directly, force user to go through authorize flow 2023-03-16 22:30:19 +01:00
0866de94b6 hash: secret: defaults at 64, can generate custom length 2023-03-16 22:29:51 +01:00
64f3db3864 openid: response types: remove support of implicit flow for the moment 2023-03-16 22:29:32 +01:00
eb93cbd7ec ezidam, openid: refactor check app in method, verifying and send POST as well 2023-03-16 21:38:32 +01:00
8ae0c59a25 ezidam, openid: check scopes, check response types before getting app 2023-03-16 00:05:54 +01:00
396856eee5 ezidam: oauth: authorize for ezidam: fill ezidam app info from database, show app label on template 2023-03-15 22:01:53 +01:00
95173b1a09 ezidam: setup: create "ezidam" app in database 2023-03-15 22:01:01 +01:00
71b083895d apps: sql + get valid one, get by id, insert, generate app id, generate secret 2023-03-15 22:00:04 +01:00
b5c2be6c9f ezidam: renamed page auth/sign_in to oauth/authorize, started work on handling oauth requests, big WIP 2023-03-13 23:42:21 +01:00
d16c6760fe template: renamed auth/sign_in to oauth/authorize, footer is pushed to bottom of page 2023-03-13 23:40:37 +01:00
a0c0c3fa8f openid: configuration: split scopes and response types in own mods, to be used in ezidam later 2023-03-13 23:31:00 +01:00
3d065bbc22 ezidam: mount all routes in "/", and use functions directly when redirecting 2023-03-12 21:29:02 +01:00
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