Skip to content

Commit 1f099ef

Browse files
gao-sunclaude
andauthored
docs: add security note for custom claims in self-hosted deployments (#1378)
docs: add security note for custom JWT scripts in self-hosted deployments Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 042c7de commit 1f099ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/developers/custom-token-claims/README.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@ sequenceDiagram
4747
end
4848
```
4949

50+
:::info
51+
Logto built-in token claims cannot be overridden or modified. Custom claims will be added to the token as additional claims. If any custom claims conflict with the built-in claims, those custom claims will be ignored.
52+
:::
53+
5054
:::warning
51-
Logto build-in token claims can NOT be overridden or modified. Custom claims will be added to the token as additional claims. If any custom claims conflict with the built-in claims, those custom claims will be ignored.
55+
Security note: In self-hosted deployments, custom JWT scripts are executed with the same privileges as the Logto server process. This feature is intended for trusted administrators only. Do not allow untrusted or lower-privilege users to create, modify, or test these scripts.
5256
:::
5357

5458
## Related resources \{#related-resources}

0 commit comments

Comments
 (0)