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 ffa4825693
commit 404422dba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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,