Skip to content

Commit

Permalink
feat: remove non-SSO restriction for MFA (#1378)
Browse files Browse the repository at this point in the history
Removes the restriction for enabling MFA on SSO accounts. It is
unnecessary and an artificial limitation.
  • Loading branch information
hf authored Jan 18, 2024
1 parent 6284d99 commit 9ca6970
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/api/mfa.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ func (a *API) EnrollFactor(w http.ResponseWriter, r *http.Request) error {
return badRequestError("invalid body: unable to parse JSON").WithInternalError(err)
}

if user.IsSSOUser {
return unprocessableEntityError("MFA enrollment only supported for non-SSO users at this time")
}

if params.FactorType != models.TOTP {
return badRequestError("factor_type needs to be totp")
}
Expand Down

0 comments on commit 9ca6970

Please sign in to comment.