From 8e32e59a095521ebbaef5d7b5eb55f497d2be6b5 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 11 Feb 2021 18:54:13 +0100 Subject: [PATCH] redirect to login if logged out --- docker/kratos/oathkeeper/access-rules.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/kratos/oathkeeper/access-rules.yml b/docker/kratos/oathkeeper/access-rules.yml index b2063b3a..4b345fe9 100644 --- a/docker/kratos/oathkeeper/access-rules.yml +++ b/docker/kratos/oathkeeper/access-rules.yml @@ -76,4 +76,6 @@ mutators: - handler: id_token errors: - - handler: json + - handler: redirect + config: + to: http://127.0.0.1/auth/login