diff --git a/docker/kratos/oathkeeper/access-rules.yml b/docker/kratos/oathkeeper/access-rules.yml index 1f710f70..229f18f3 100644 --- a/docker/kratos/oathkeeper/access-rules.yml +++ b/docker/kratos/oathkeeper/access-rules.yml @@ -21,6 +21,11 @@ config: api: url: http://dashboard:3000/api/hydrator + - handler: cookie + config: + cookies: + userxxxx: "{{ 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 7f494fbc..e4fa6e63 100644 --- a/docker/kratos/oathkeeper/oathkeeper.yml +++ b/docker/kratos/oathkeeper/oathkeeper.yml @@ -82,6 +82,13 @@ mutators: api: url: http://dashboard:3000/api/hydrator + cookie: + enabled: true + config: + cookies: + userxxxx: "{{ print .Subject }}", + some-arbitrary-data: "{{ print .Extra.foo }}" + id_token: enabled: true config: