File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,6 +147,10 @@ The ID Token Claims are as follows:
147147 (minute), h (hour).
148148- ` claims` (string, optional) - Allows you to customize the ID Token claims and support Go Templates. For more information, check
149149 section [Claims](#id_token-claims)
150+ - ` cache` (object, optional) - Enables caching of computed tokens
151+ - ` enabled` (bool, optional) - Enable the cache, will use exp time of ID token to determine when to evict from cache. Defaults
152+ to true.
153+ - ` max_cost` (int) - Max cost to cache. Defaults to 33554432.
150154
151155` ` ` yaml
152156# Global configuration file oathkeeper.yml
@@ -161,6 +165,8 @@ mutators:
161165 # jwks_url: file://../from/this/relative/location.json
162166 ttl: 60s
163167 claims: '{"aud": ["https://my-backend-service/some/endpoint"],"def": "{{ print .Extra.some.arbitrary.data }}"}'
168+ cache:
169+ max_cost: 10000
164170` ` `
165171
166172` ` ` yaml
You can’t perform that action at this time.
0 commit comments