@@ -98,6 +98,7 @@ func Entitlements(
98
98
if claims .AllFeatures {
99
99
allFeatures = true
100
100
}
101
+ entitlements .RequireTelemetry = entitlements .RequireTelemetry || claims .RequireTelemetry
101
102
}
102
103
103
104
if allFeatures {
@@ -224,13 +225,14 @@ type Claims struct {
224
225
// the end of the grace period (identical to LicenseExpires if there is no grace period).
225
226
// The reason we use the standard claim for the end of the grace period is that we want JWT
226
227
// processing libraries to consider the token "valid" until then.
227
- LicenseExpires * jwt.NumericDate `json:"license_expires,omitempty"`
228
- AccountType string `json:"account_type,omitempty"`
229
- AccountID string `json:"account_id,omitempty"`
230
- Trial bool `json:"trial"`
231
- AllFeatures bool `json:"all_features"`
232
- Version uint64 `json:"version"`
233
- Features Features `json:"features"`
228
+ LicenseExpires * jwt.NumericDate `json:"license_expires,omitempty"`
229
+ AccountType string `json:"account_type,omitempty"`
230
+ AccountID string `json:"account_id,omitempty"`
231
+ Trial bool `json:"trial"`
232
+ AllFeatures bool `json:"all_features"`
233
+ Version uint64 `json:"version"`
234
+ Features Features `json:"features"`
235
+ RequireTelemetry bool `json:"require_telemetry,omitempty"`
234
236
}
235
237
236
238
// ParseRaw consumes a license and returns the claims.
0 commit comments