MCPcopy Create free account
hub / github.com/auth0/auth0-cli / makeBruteForceProtectionView

Function makeBruteForceProtectionView

internal/display/attack_protection.go:106–116  ·  view source on GitHub ↗
(bfp *management.BruteForceProtection)

Source from the content-addressed store, hash-verified

104}
105
106func makeBruteForceProtectionView(bfp *management.BruteForceProtection) *bruteForceProtectionView {
107 return &bruteForceProtectionView{
108 Enabled: boolean(bfp.GetEnabled()),
109 Shields: bfp.GetShields(),
110 AllowList: bfp.GetAllowList(),
111 Mode: bfp.GetMode(),
112 MaxAttempts: bfp.GetMaxAttempts(),
113
114 raw: bfp,
115 }
116}
117
118type suspiciousIPThrottlingView struct {
119 Enabled string

Callers 2

Calls 1

booleanFunction · 0.85

Tested by

no test coverage detected