Add test OIDC provider
This commit is contained in:
parent
daffea6727
commit
bca1768fc4
20
README.md
20
README.md
@ -34,4 +34,22 @@ diesel migation run
|
||||
>
|
||||
> ```bash
|
||||
> PGPASSWORD=pass psql -h localhost -p 5432 -U user -d geneit
|
||||
> ```
|
||||
> ```
|
||||
|
||||
## Test OIDC credentials
|
||||
Emails:
|
||||
|
||||
```
|
||||
harley@qlik.example
|
||||
barb@qlik.example
|
||||
quinn@qlik.example
|
||||
sim@qlik.example
|
||||
phillie@qlik.example
|
||||
peta@qlik.example
|
||||
peta@qlik.example
|
||||
sibylla@qlik.example
|
||||
evan@qlik.example
|
||||
franklin@qlik.example
|
||||
```
|
||||
|
||||
Password: `Password1!`
|
@ -40,4 +40,12 @@ services:
|
||||
volumes:
|
||||
- ./storage/redis-data:/data
|
||||
- ./storage/redis-conf:/usr/local/etc/redis/redis.conf
|
||||
|
||||
oidc:
|
||||
image: qlik/simple-oidc-provider
|
||||
environment:
|
||||
- REDIRECTS=http://localhost:3000/oidc_cb
|
||||
- PORT=9001
|
||||
ports:
|
||||
- 9001:9001
|
||||
|
@ -89,7 +89,11 @@ pub struct AppConfig {
|
||||
pub reset_password_url: String,
|
||||
|
||||
/// URL where the OpenID configuration can be found
|
||||
#[arg(long, env, default_value = "url")]
|
||||
#[arg(
|
||||
long,
|
||||
env,
|
||||
default_value = "http://localhost:9001/.well-known/openid-configuration"
|
||||
)]
|
||||
pub oidc_configuration_url: String,
|
||||
|
||||
/// Disable OpenID authentication
|
||||
@ -101,11 +105,11 @@ pub struct AppConfig {
|
||||
pub oidc_provider_name: String,
|
||||
|
||||
/// OpenID client ID
|
||||
#[arg(long, env, default_value = "client")]
|
||||
#[arg(long, env, default_value = "foo")]
|
||||
pub oidc_client_id: String,
|
||||
|
||||
/// OpenID client secret
|
||||
#[arg(long, env, default_value = "secret")]
|
||||
#[arg(long, env, default_value = "bar")]
|
||||
pub oidc_client_secret: String,
|
||||
|
||||
/// OpenID login callback URL
|
||||
|
Loading…
Reference in New Issue
Block a user