OIDC functional
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-19 21:08:51 +02:00
parent 43fb8dcda6
commit 87f017fc42
6 changed files with 27 additions and 34 deletions

View File

@ -29,15 +29,22 @@ services:
- ./storage/db:/var/lib/postgresql/data
oidc:
image: dexidp/dex
image: pierre42100/basic_oidc
user: "1000"
environment:
- LISTEN_ADDRESS=0.0.0.0:9001
- STORAGE_PATH=/storage
- TOKEN_KEY=$AUTH_SECRET_KEY
- WEBSITE_ORIGIN=http://localhost:9001
- OIDC_CLIENT_ID=$OIDC_CLIENT_ID
- OIDC_CLIENT_SECRET=$OIDC_CLIENT_SECRET
- APP_ORIGIN=$WEBSITE_ORIGIN
expose:
- 9001
ports:
- 9001:9001
volumes:
- ./dex:/conf:ro
command: [ "dex", "serve", "/conf/dex.config.yaml" ]
- ./auth:/storage
redis:
image: redis:alpine
@ -61,10 +68,10 @@ services:
- DB_USERNAME=$DB_USER
- DB_PASSWORD=$DB_PASSWORD
- DB_NAME=moneymgr
- OIDC_CONFIGURATION_URL=http://oidc:9001/dex/.well-known/openid-configuration
- OIDC_CONFIGURATION_URL=http://oidc:9001/.well-known/openid-configuration
- OIDC_PROVIDER_NAME=OIDC
- OIDC_CLIENT_ID=foo
- OIDC_CLIENT_SECRET=bar
- OIDC_CLIENT_ID=$OIDC_CLIENT_ID
- OIDC_CLIENT_SECRET=$OIDC_CLIENT_SECRET
- S3_ENDPOINT=http://minio:9000
- S3_ACCESS_KEY=$MINIO_ROOT_USER
- S3_SECRET_KEY=$MINIO_ROOT_PASSWORD