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

Function makeBotDetectionShowView

internal/display/attack_protection.go:235–246  ·  view source on GitHub ↗
(bd *managementv2.GetBotDetectionSettingsResponseContent)

Source from the content-addressed store, hash-verified

233}
234
235func makeBotDetectionShowView(bd *managementv2.GetBotDetectionSettingsResponseContent) *botDetectionView {
236 return &botDetectionView{
237 BotDetectionLevel: string(bd.GetBotDetectionLevel()),
238 ChallengePasswordPolicy: string(bd.GetChallengePasswordPolicy()),
239 ChallengePasswordlessPolicy: string(bd.GetChallengePasswordlessPolicy()),
240 ChallengePasswordResetPolicy: string(bd.GetChallengePasswordResetPolicy()),
241 AllowList: bd.GetAllowlist(),
242 MonitoringModeEnabled: boolean(bd.GetMonitoringModeEnabled()),
243
244 raw: bd,
245 }
246}
247
248func makeBotDetectionUpdateView(bd *managementv2.UpdateBotDetectionSettingsResponseContent) *botDetectionView {
249 return &botDetectionView{

Callers 1

BotDetectionShowMethod · 0.85

Calls 1

booleanFunction · 0.85

Tested by

no test coverage detected