ugent-library / deliver

Apache License 2.0
3 stars 0 forks source link

improve dev experience #104

Closed nics closed 8 months ago

nics commented 10 months ago

there is now a docker compose that loads everything except an oidc server but further refinements are possible:

resources:

nicolasfranck commented 10 months ago

This is handy: https://docs.magnolia-cms.com/magnolia-sso/3.1.x/guides/using-a-mock-oidc-server.html. Is nodejs though. But allows for a random user and password. The uid returned is stored in attribute sub. Important for your client configuration (e.g. circulation uses preferred_username)

nicolasfranck commented 9 months ago

See https://github.com/ugent-library/mock-oidc-server

For those willing to put everything in a docker-compose, there is a caveat: not only the end user communicates with the oidc server, but also the oidc client (for token validation). Both need to available to the end user and the client in the exact same way. So if the oidc server is declared to be available at localhost:3000 to the end user (via a port mapping), the oidc server will also try to fetch from that host. In a default docker-compose setup, this is not possible, unless you agree to create a bridged network name localhost?