Add OTP MFA configuration variables

Add OTP MFA related configuration variables.

Variables

  • DAST_AUTH_OTP_FIELD
  • DAST_AUTH_OTP_KEY
  • DAST_AUTH_OTP_SUBMIT_FIELD

DAST_AUTH_OTP_STATIC is mutually exclusive with DAST_AUTH_OTP_KEY. If either one is set, DAST_AUTH_OTP_FIELD and DAST_AUTH_OTP_SUBMIT_FIELD are required.

Secrets to mask

  • DAST_AUTH_OTP_KEY

Implementation plan

What needs to be done:

  • environmentConfig struct in environment_config.go
  • MaskedFields map in config.go
  • AuthDetails struct in auth.go -- Add a new AuthOtpDetails struct?
  1. New file auth_otp.go with struct AuthOtpDetails
  2. Update AuthDetails struct in auth.go with entry for AuthOtpDetails
Edited by David Nelson