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

Function makeBotDetectionUpdateView

internal/display/attack_protection.go:248–259  ·  view source on GitHub ↗
(bd *managementv2.UpdateBotDetectionSettingsResponseContent)

Source from the content-addressed store, hash-verified

246}
247
248func makeBotDetectionUpdateView(bd *managementv2.UpdateBotDetectionSettingsResponseContent) *botDetectionView {
249 return &botDetectionView{
250 BotDetectionLevel: string(bd.GetBotDetectionLevel()),
251 ChallengePasswordPolicy: string(bd.GetChallengePasswordPolicy()),
252 ChallengePasswordlessPolicy: string(bd.GetChallengePasswordlessPolicy()),
253 ChallengePasswordResetPolicy: string(bd.GetChallengePasswordResetPolicy()),
254 AllowList: bd.GetAllowlist(),
255 MonitoringModeEnabled: boolean(bd.GetMonitoringModeEnabled()),
256
257 raw: bd,
258 }
259}

Callers 1

BotDetectionUpdateMethod · 0.85

Calls 1

booleanFunction · 0.85

Tested by

no test coverage detected