diff --git a/pkg/usermanagement/client.go b/pkg/usermanagement/client.go index ebdf56a5..4ec2337a 100644 --- a/pkg/usermanagement/client.go +++ b/pkg/usermanagement/client.go @@ -279,6 +279,7 @@ type EnrollAuthFactorOpts struct { Type mfa.FactorType `json:"type"` TOTPIssuer string `json:"totp_issuer,omitempty"` TOTPUser string `json:"totp_user,omitempty"` + TOTPSecret string `json:"totp_secret,omitempty"` } type EnrollAuthFactorResponse struct { diff --git a/pkg/usermanagement/usermanagement_test.go b/pkg/usermanagement/usermanagement_test.go index 7426f621..18e458a8 100644 --- a/pkg/usermanagement/usermanagement_test.go +++ b/pkg/usermanagement/usermanagement_test.go @@ -491,6 +491,7 @@ func TestUserManagementEnrollAuthFactor(t *testing.T) { authenticationRes, err := EnrollAuthFactor(context.Background(), EnrollAuthFactorOpts{ User: "user_01E3JC5F5Z1YJNPGVYWV9SX6GH", Type: mfa.TOTP, + TOTPSecret: "testSecret", }) require.NoError(t, err)