From 3e93a298dae6010e5f5b7f31c456973ac5e6c659 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 9 Feb 2021 13:18:44 +0100 Subject: [PATCH] enable cookie --- docker/kratos/oathkeeper/access-rules.yml | 18 +++++++++--------- docker/kratos/oathkeeper/oathkeeper.yml | 22 +++++++++++----------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docker/kratos/oathkeeper/access-rules.yml b/docker/kratos/oathkeeper/access-rules.yml index 537b5a77..f9a1a8eb 100644 --- a/docker/kratos/oathkeeper/access-rules.yml +++ b/docker/kratos/oathkeeper/access-rules.yml @@ -17,15 +17,15 @@ handler: allow mutators: - handler: noop - - handler: hydrator - config: - api: - url: http://dashboard:3000/api/hydrator - - handler: cookie - config: - cookies: - user: "{{ print .Subject }}", - some-arbitrary-data: "{{ print .Extra.foo }}" + # - handler: hydrator + # config: + # api: + # url: http://dashboard:3000/api/hydrator + # - handler: cookie + # config: + # cookies: + # user: "{{ print .Subject }}", + # some-arbitrary-data: "{{ print .Extra.foo }}" - id: "dashboard:anonymous" upstream: diff --git a/docker/kratos/oathkeeper/oathkeeper.yml b/docker/kratos/oathkeeper/oathkeeper.yml index b7c72049..b5a99b30 100644 --- a/docker/kratos/oathkeeper/oathkeeper.yml +++ b/docker/kratos/oathkeeper/oathkeeper.yml @@ -76,18 +76,18 @@ mutators: noop: enabled: true - hydrator: - enabled: true - config: - api: - url: http://dashboard:3000/api/hydrator + # hydrator: + # enabled: true + # config: + # api: + # url: http://dashboard:3000/api/hydrator - cookie: - enabled: true - config: - cookies: - user: "{{ print .Subject }}", - some-arbitrary-data: "{{ print .Extra.foo }}" + # cookie: + # enabled: true + # config: + # cookies: + # user: "{{ print .Subject }}", + # some-arbitrary-data: "{{ print .Extra.foo }}" id_token: enabled: true