An example on how to implement OIDC Authentication with oauth2-proxy and different Apps/Frameworks.
To choose one of the different app setups run:
- FastAPI:
make app=fastapi
- Flask:
make app=flask
- whoami test service:
make app=whoami
Then go to http://localhost:4180
Go to localhost:8007
Test user: asdf
pass: asdf
To update the keycloak realm configuration, you can use the keycloak admin cli.
chmod -R a+rwX keycloak/data/import/
docker-compose down --remove-orphans
docker-compose run --rm keycloak export --dir /opt/keycloak/data/import --realm hello
This will update your import files in keycloak/data/import.