You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CyberArk(identity): remove backoff library and simplify error handling
- Eliminated the use of the backoff library for retry logic in authentication methods
- Simplified error handling by directly returning errors without wrapping them in backoff.Permanent.
- Removed unnecessary retry logic for 4xx errors in `doStartAuthentication` and `doAdvanceAuthentication`.
- Improved code readability by streamlining the `LoginUsernamePassword` function.
Signed-off-by: Richard Wall <richard.wall@cyberark.com>
// IF MFA was enabled and we got here, there's probably nothing to be gained from a retry
415
398
// and the best thing to do is fail now so the user can fix MFA settings.
416
-
returnbackoff.Permanent(fmt.Errorf("got a %s response from AdvanceAuthentication; this implies that the user account %s requires MFA, which is not supported. Try unlocking MFA for this user", advanceAuthResponse.Result.Summary, username))
399
+
returnfmt.Errorf("got a %s response from AdvanceAuthentication; this implies that the user account %s requires MFA, which is not supported. Try unlocking MFA for this user", advanceAuthResponse.Result.Summary, username)
0 commit comments