Bump up period and skew to prevent timeouts (#17804)

Give the default SetupLoginMFATOTP helper a more robust period/skew. 403 failures on test-go-race are likely due to TOTP code timeouts being too aggressive.
This commit is contained in:
Mike Palmiotto
2022-11-03 11:57:25 -04:00
committed by GitHub
parent 866a47d154
commit 5d481e282c

View File

@@ -954,10 +954,10 @@ func SetupLoginMFATOTP(t testing.T, client *api.Client) (*api.Client, string, st
// Configure a default TOTP method
totpConfig := map[string]interface{}{
"issuer": "yCorp",
"period": 5,
"period": 20,
"algorithm": "SHA256",
"digits": 6,
"skew": 0,
"skew": 1,
"key_size": 20,
"qr_size": 200,
"max_validation_attempts": 5,