Commit Graph

58 Commits

Author SHA1 Message Date
Zoe Roux d88160218b Fix tests 2025-04-05 00:46:22 +02:00
Zoe Roux 6d8697cd9d Convert robot tests to hurl 2025-04-05 00:28:24 +02:00
Zoe Roux c5a676b2a5 Add guest handling 2025-04-05 00:28:24 +02:00
Zoe Roux 431055ec49 Add custom claims for first user 2025-04-05 00:28:24 +02:00
Zoe Roux 8ef4fe5e55 Remove db conf handling and read private key from storage 2025-04-04 22:44:44 +02:00
Zoe Roux 92753b72d3 Add a middleware in keibi to convert session token to jwt 2025-04-04 22:44:44 +02:00
Zoe Roux 411f6dcfba Use pages for users paginations 2025-04-04 22:44:44 +02:00
Zoe Roux 076d5a0dbd Use KError instead of problem details (like the api) 2025-04-04 22:44:44 +02:00
Zoe Roux b81c94f2da Cleanup doc of users routes 2025-04-04 22:44:44 +02:00
Zoe Roux f53e71afff Add doc for session routes 2025-04-04 22:44:44 +02:00
Zoe Roux 8fe50ad00b Add examples for jwt routes of keibi 2025-04-04 22:44:44 +02:00
Zoe Roux 65a7f62fd1 Validate issuer & allow unlogged routes 2025-04-04 22:44:44 +02:00
Zoe Roux 0e81c11f75 Use echo-jwt 4.2 to prevent breaking change 2025-03-25 10:53:27 +01:00
Zoe Roux bcded031e2 Use jwks in elysia 2025-03-25 10:27:03 +01:00
Zoe Roux 161e4943a1 Add openid-configuration just for jwks_uri (for jwt.io) 2025-03-25 10:27:03 +01:00
Zoe Roux 9dc1087273 Use 30s interval healthchecks 2025-03-25 10:27:03 +01:00
Zoe Roux 6391a99bb9 Switch to jwks instead of custom /info 2025-03-25 10:27:03 +01:00
Zoe Roux 825619b11d Make /jwt return an Authorization header for traefik 2025-03-25 10:27:03 +01:00
Zoe Roux 7ec940a8dc Add healthchecks for auth 2025-03-25 10:27:03 +01:00
Zoe Roux b94a6a652e Push generated files in auth to make tools happy 2025-03-25 10:27:03 +01:00
Zoe Roux 23adc6033e Update go modules 2025-03-25 10:27:03 +01:00
renovate[bot] bcdf99576c chore(deps): update golang docker tag to v1.24 2025-02-24 09:25:33 +01:00
Zoe Roux 257ef354c6 Add prefix for auth 2025-01-03 18:32:41 +01:00
Zoe Roux e4f7c1215b Update go modules (#745) 2025-01-01 21:47:00 +00:00
Zoe Roux 899e90deaf Add healthcheck for auth (#658) 2024-11-01 22:32:50 +00:00
Zoe Roux 8fd57da294 Fix keibi dockerfile & ci 2024-10-19 19:06:43 +02:00
Zoe Roux 49fc88667a Fix robot tests 2024-10-19 18:09:22 +02:00
Zoe Roux 79b685ea8a Add proper error handling and fix del /sessions/current 2024-10-19 18:09:22 +02:00
Zoe Roux a2df0ae305 Move pk to int autogen and uuid as handle 2024-10-19 18:09:22 +02:00
Zoe Roux 200087f2f6 Fix jwt signing verification 2024-10-19 18:09:22 +02:00
Zoe Roux 2b493e6d16 Add default config values 2024-10-19 18:09:22 +02:00
Zoe Roux 662457d0f1 Robot tests wip 2024-10-19 18:09:22 +02:00
Zoe Roux 8b1cf61209 Add robot tests for auth system 2024-10-19 18:09:22 +02:00
Zoe Roux 10d8c121b3 Add /info to retrieve public key 2024-10-19 18:09:22 +02:00
Zoe Roux 9b2f6eadc7 Add delete user routes 2024-10-19 18:09:21 +02:00
Zoe Roux 1b192c7d05 Check permissions 2024-10-19 18:09:21 +02:00
Zoe Roux 3c73196f87 Add logout and get /users/me 2024-10-19 18:09:21 +02:00
Zoe Roux caa4cf4c8d Switch to asymetric keys for jwt signing 2024-10-19 18:09:21 +02:00
Zoe Roux e197062f64 Add /jwt route 2024-10-19 18:09:21 +02:00
Zoe Roux 95da0184a0 Cleanup return codes and add docs comment for swagger 2024-10-19 18:09:21 +02:00
Zoe Roux 7b08afde06 Use a proper id for sessions, leave token as a separate field 2024-10-19 18:09:21 +02:00
Zoe Roux b340958348 Add login route 2024-10-19 18:09:21 +02:00
Zoe Roux 4685f76cad Go mod tidy 2024-10-19 18:09:21 +02:00
Zoe Roux dd1580b819 Fix timestamptz typo 2024-10-19 18:09:21 +02:00
Zoe Roux dc41880ca7 Fix pgx configuration 2024-10-19 18:09:21 +02:00
Zoe Roux 0c64d9b15d Add dockerfile 2024-10-19 18:09:21 +02:00
Zoe Roux cf1e7497e2 Add swagger and problem details 2024-10-19 18:09:21 +02:00
Zoe Roux 8a2fb36cb0 Setup sessions 2024-10-19 18:09:21 +02:00
Zoe Roux 306dbbd024 Create register 2024-10-19 18:09:21 +02:00
Zoe Roux dfc411e5f6 Add configuration table 2024-10-19 18:09:20 +02:00