mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user