File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,10 @@ The ID Token Claims are as follows:
147
147
(minute), h (hour).
148
148
- ` claims` (string, optional) - Allows you to customize the ID Token claims and support Go Templates. For more information, check
149
149
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.
150
154
151
155
` ` ` yaml
152
156
# Global configuration file oathkeeper.yml
@@ -161,6 +165,8 @@ mutators:
161
165
# jwks_url: file://../from/this/relative/location.json
162
166
ttl: 60s
163
167
claims: '{"aud": ["https://my-backend-service/some/endpoint"],"def": "{{ print .Extra.some.arbitrary.data }}"}'
168
+ cache:
169
+ max_cost: 10000
164
170
` ` `
165
171
166
172
` ` ` yaml
You can’t perform that action at this time.
0 commit comments