You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/machine-to-machine-applications/m2m-application-setup/add-metadata-to-an-m2m-application-with-properties.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ This is useful for:
17
17
- Driving logic in downstream systems
18
18
- Managing AI agent behavior
19
19
20
-
If you're looking to include properties inside tokens, see [Customize the contents of an M2M token](/machine-to-machine-applications/m2m-application-setup/m2m-token-customization/).
20
+
If you're looking to include properties inside tokens, see [Customize the claims of an M2M token with properties](/machine-to-machine-applications/m2m-application-setup/add-metadata-to-an-m2m-application-with-properties/).
Copy file name to clipboardExpand all lines: src/content/docs/machine-to-machine-applications/m2m-token-customization/customize-m2m-tokens.mdx
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ relatedArticles:
12
12
You can customize the claims of tokens issued to Machine-to-Machine (M2M) applications in Kinde by including selected **Properties** and **Feature Flags**. This allows you to inject structured metadata and configuration directly into the token, without requiring an additional lookup at runtime.
13
13
14
14
This is useful for:
15
+
15
16
- Routing or behavior changes based on metadata
16
17
- Feature gating in backend systems
17
18
- Configuring AI agents or other automation tools
@@ -22,6 +23,7 @@ This is useful for:
22
23
2. Select the **Tokens** tab
23
24
24
25
From here you can:
26
+
25
27
- Set the token lifetime
26
28
- Enable **Hasura-compatible mapping**
27
29
- Opt to include scopes under a `permissions` claim
@@ -42,7 +44,7 @@ The value will appear in the token under a `application_properties` claim:
42
44
43
45
```json
44
46
{
45
-
"application_properties": {
47
+
"application_properties": {
46
48
"region": {
47
49
"v": "eu"
48
50
},
@@ -71,17 +73,18 @@ Example:
71
73
```json
72
74
{
73
75
"feature_flags": {
74
-
"new-ai-agent": {
75
-
"t": "b",
76
-
"v": true
77
-
},
78
-
"access-level": {
79
-
"t": "s",
80
-
"v": "beta"
81
-
}
76
+
"new-ai-agent": {
77
+
"t": "b",
78
+
"v": true
79
+
},
80
+
"access-level": {
81
+
"t": "s",
82
+
"v": "beta"
82
83
}
84
+
}
83
85
}
84
86
```
87
+
85
88
The `t` and `v` are short codes for the type and value of the feature flag.
86
89
87
90
-`t` = `type` (boolean, string, number)
@@ -100,7 +103,7 @@ Only the feature flags you explicitly toggle on will be included.
100
103
For complete control over the token, you can use the [Kinde M2M token generation workflow](/machine-to-machine-applications/m2m-workflow-automation/m2m-workflow/) to customize the token further.
0 commit comments