Replace test OIDC provider

This commit is contained in:
Pierre HUBERT 2024-11-30 09:36:57 +01:00
parent 044b7d0de4
commit 48e9c1d42f
3 changed files with 32 additions and 7 deletions

View File

@ -1,9 +1,8 @@
services: services:
oidc: oidc:
image: qlik/simple-oidc-provider image: dexidp/dex
environment:
- REDIRECTS=http://localhost:3000/oidc_cb,http://localhost:5173/oidc_cb
- PORT=9001
ports: ports:
- 9001:9001 - 9001:9001
volumes:
- ./docker/dex:/conf:ro
command: [ "dex", "serve", "/conf/dex.config.yaml" ]

View File

@ -0,0 +1,26 @@
issuer: http://127.0.0.1:9001/dex
storage:
type: memory
web:
http: 0.0.0.0:9001
oauth2:
# Automate some clicking
# Note: this might actually make some tests pass that otherwise wouldn't.
skipApprovalScreen: false
connectors:
# Note: this might actually make some tests pass that otherwise wouldn't.
- type: mockCallback
id: mock
name: Example
# Basic OP test suite requires two clients.
staticClients:
- id: foo
secret: bar
redirectURIs:
- http://localhost:3000/oidc_cb
name: Project

View File

@ -68,7 +68,7 @@ pub struct AppConfig {
#[arg( #[arg(
long, long,
env, env,
default_value = "http://localhost:9001/.well-known/openid-configuration" default_value = "http://localhost:9001/dex/.well-known/openid-configuration"
)] )]
pub oidc_configuration_url: String, pub oidc_configuration_url: String,