From e9958ce73ed6d8b80350467f483d71b01abdbf20 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Mon, 15 Feb 2021 11:26:50 +0100 Subject: [PATCH] Equalize the duration of the kratos and skynet sessions. --- docker/kratos/config/kratos.yml.sample | 1 + docker/kratos/oathkeeper/oathkeeper.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/kratos/config/kratos.yml.sample b/docker/kratos/config/kratos.yml.sample index df168cc0..98464dfa 100644 --- a/docker/kratos/config/kratos.yml.sample +++ b/docker/kratos/config/kratos.yml.sample @@ -65,6 +65,7 @@ secrets: session: cookie: domain: secure.siasky.net + lifespan: "24h" hashers: argon2: diff --git a/docker/kratos/oathkeeper/oathkeeper.yml b/docker/kratos/oathkeeper/oathkeeper.yml index db5f5643..6f9101a0 100644 --- a/docker/kratos/oathkeeper/oathkeeper.yml +++ b/docker/kratos/oathkeeper/oathkeeper.yml @@ -94,7 +94,7 @@ mutators: config: issuer_url: http://oathkeeper:4455/ jwks_url: file:///etc/config/oathkeeper/id_token.jwks.json - ttl: 4h + ttl: 24h claims: | { "session": {{ .Extra | toJson }}