diff --git a/e2e-tests/dex-config.yaml b/e2e-tests/dex-config.yaml new file mode 100644 index 000000000..502c0c3f8 --- /dev/null +++ b/e2e-tests/dex-config.yaml @@ -0,0 +1,22 @@ +issuer: http://localhost:16009/dex +storage: + type: memory +web: + http: 0.0.0.0:5556 + +oauth2: + skipApprovalScreen: true + +staticClients: + - id: my-app + redirectURIs: + - 'http://localhost:3000/callback' + name: 'My Test App' + secret: my-secret + +enablePasswordDB: true +staticPasswords: + - email: "test@example.com" + hash: "$apr1$Jt1q33YL$HtIJEPYtMAf6aEtCdF4j80" + username: "test" + userID: "1234" diff --git a/e2e-tests/docker-compose.yaml b/e2e-tests/docker-compose.yaml index 93b18e4c2..4a511433d 100644 --- a/e2e-tests/docker-compose.yaml +++ b/e2e-tests/docker-compose.yaml @@ -30,3 +30,11 @@ services: ports: - 16007:3306 - 16008:22 + + dex: + image: dexidp/dex:v2.35.3 + ports: + - "16009:5556" + volumes: + - ./dex-config.yaml:/etc/dex/cfg/config.yaml + command: ["serve", "/etc/dex/cfg/config.yaml"]