File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -169,3 +169,27 @@ Which results in an access token with the following structure:
169
169
// ...
170
170
}
171
171
```
172
+
173
+ ### Disable mirroring the claims under ` ext `
174
+
175
+ By default, all custom claims will be mirrored in the ` ext ` claim (as is the case with the claim ` some_custom_claim ` in the
176
+ example above).
177
+
178
+ Set ` oauth2.mirror_top_level_claims ` to ` false ` to disable mirroring the claims in the nested ` ext ` claim:
179
+
180
+ ``` shell
181
+ ory patch oauth2-config {project.id} \
182
+ --replace " /oauth2/mirror_top_level_claims=false"
183
+ ```
184
+
185
+ This results in an access token with the following structure:
186
+
187
+ ``` json
188
+ {
189
+ "sub" : " ..." ,
190
+ // ...
191
+ "some_custom_claim" : " some_custom_value"
192
+ // no "ext" claim
193
+ // ...
194
+ }
195
+ ```
You can’t perform that action at this time.
0 commit comments