Liking cljdoc? Tell your friends :D

wagoe.user.shell.lockout

The failed-login lockout every credential check shares: sign-in, the second factor, MFA disable and change-password.

The failed-login lockout every credential check shares: sign-in, the second
factor, MFA disable and change-password.
raw docstring

claim-attempts!clj

(claim-attempts! user-repository auth-config user-id n current-time)

Count n attempts for user-id before checking them, unless the account is locked: the count is the lockout check, so parallel attempts cannot exceed the limit (BOU-785). Returns {:claimed? true :locked? b}, :locked? when this claim reached the limit, or {:claimed? false :retry-after inst}.

Count `n` attempts for `user-id` before checking them, unless the account is
locked: the count is the lockout check, so parallel attempts cannot exceed
the limit (BOU-785). Returns {:claimed? true :locked? b}, :locked? when this
claim reached the limit, or {:claimed? false :retry-after inst}.
sourceraw docstring

locked-errorclj

(locked-error retry-after)

The ADR-036 refusal for an account locked until retry-after.

The ADR-036 refusal for an account locked until `retry-after`.
sourceraw docstring

release-attempt!clj

(release-attempt! user-repository user-id claim)

Take back an attempt claim-attempts! counted whose password was right, and the lockout it set, if it set one.

Take back an attempt `claim-attempts!` counted whose password was right,
and the lockout it set, if it set one.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close