mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
Clarify CalculateTrustedDeviceRequirement godoc (#67389)
This commit is contained in:
@@ -29,6 +29,11 @@ import (
|
||||
// the cluster config and user roles.
|
||||
// It checks the cluster requirement using the enforcement mode, disregarding the
|
||||
// provenance of the binary if the mode is set.
|
||||
//
|
||||
// CalculateTrustedDeviceRequirement is NOT enforcing, its result is strictly
|
||||
// informative (for example, showing an UI icon based on requirement).
|
||||
// For device authorization see the Verify functions, like [VerifyTLSUser] or
|
||||
// [VerifySSHUser].
|
||||
func CalculateTrustedDeviceRequirement(
|
||||
dt *types.DeviceTrust,
|
||||
getRoles func() ([]types.Role, error),
|
||||
|
||||
Reference in New Issue
Block a user