Commit graph

4 commits

Author SHA1 Message Date
13f65707e7 Init OIDC client on start with config from DB (#48) 2024-08-17 14:23:06 +02:00
b0e0a19c97 Replace previous backend service with new storage (#48)
Some checks failed
/ docker-build-only (push) Failing after 30s
/ go-test (push) Failing after 1m14s
2024-08-16 13:49:59 +02:00
64e48a5689 Add basic way to get backend from query (#48)
Because polyculeconnect is a OIDC proxy, we need to know which auth
backend to use. This is provided using a query param or a form, so we
need to get it from our own middleware.

This commit adds the following elements:
 - basic DB storage for the backends
 - support for DB migrations and a first test migration (not definitive)
 - middleware to get the backend from the request and put it in the
   context
 - test that the backend exists in the auth flow
2024-08-16 11:29:19 +02:00
f3060bee3b feat: start replacing dex with zitadel (#48)
Start the process of replacing dex with zitadel, this commit is
absolutely not prod-ready, basically we just added zitatel, and the
necessary elements to make it work to at least getting a client from the
DB

- replace logrus with zap
- start our own storage for the users
- instanciate zitaled on start
- allow getting client using the ID from the DB
2024-08-16 11:29:19 +02:00