Add test OIDC provider
This commit is contained in:
parent
daffea6727
commit
bca1768fc4
18
README.md
18
README.md
@ -35,3 +35,21 @@ 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!`
|
@ -41,3 +41,11 @@ services:
|
||||
- ./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