Files
safetynet/apps/browser/policy-assignment.cjs
T

10 lines
412 B
JavaScript
Raw Normal View History

2026-10-13 10:33:31 +02:00
'use strict';
// Check the signed effective policy before any enrollment state or browser
// settings are committed. A valid fleet signature alone is not device binding.
function assertPolicyAssignment(policy, deviceId) {
if (policy.assignment && policy.assignment.deviceId !== deviceId) {
throw Error('Policy device assignment rejected');
}
return policy;
}
module.exports = {assertPolicyAssignment};