MCPcopy Create free account

hub / github.com/arumes31/rauth / functions

Functions675 in github.com/arumes31/rauth

↓ 135 callersMethodGet
(key string)
internal/core/geo.go:44
↓ 80 callersFunctioncreateTestContext
(e *echo.Echo, method, path string, f url.Values)
internal/handlers/test_helpers.go:55
↓ 41 callersFunctionsetupHandlersTest
(t *testing.T)
internal/handlers/test_helpers.go:23
↓ 32 callersFunctionLogAudit
(action, username, ip string, details map[string]interface{})
internal/core/audit.go:23
↓ 30 callersFunctionResetRateLimit
(key string)
internal/core/limiter.go:47
↓ 29 callersFunctionCheckRateLimit
(key string, maxAttempts int, decaySeconds int)
internal/core/limiter.go:27
↓ 29 callersMethodgetOrCreateInstance
(t,e={})
static/js/bootstrap.bundle.min.js:6
↓ 27 callersFunctionEncryptToken
(text string, key string)
internal/core/security.go:108
↓ 25 callersMethodRender
(w io.Writer, name string, data interface{}, c echo.Context)
internal/handlers/xss_test.go:48
↓ 21 callersFunctiongetEnv
(key, fallback string)
internal/core/config.go:256
↓ 19 callersFunctiongetEnvInt
(key string, fallback int)
internal/core/config.go:276
↓ 18 callersFunctionAddSessionIndex
(username, token string)
internal/core/redis.go:149
↓ 18 callersFunctionGetCountryCode
(ipStr string)
internal/core/geo.go:187
↓ 17 callersFunctionGetUser
GetUser reads a user record. It is side-effect free; UID backfill for legacy records is handled by EnsureUserUIDs at startup and by CreateUser for new
internal/core/user.go:59
↓ 17 callersMethodValidate
(c echo.Context)
internal/handlers/auth.go:66
↓ 17 callersFunctiongetRD
getRD returns the post-login redirect target, accepting it from either the query string or a form field so it survives the multi-step 2FA flow.
internal/handlers/auth.go:39
↓ 16 callersMethod_queueCallback
(t,e,i=!0)
static/js/bootstrap.bundle.min.js:6
↓ 15 callersMethodClose
()
internal/core/geo.go:26
↓ 14 callersFunctionCreateUser
(username, password, email string, isAdmin bool, twoFactor string)
internal/core/user.go:131
↓ 14 callersFunctiong
(t,e=[],i=t)
static/js/bootstrap.bundle.min.js:6
↓ 13 callersFunctionDecryptToken
(encryptedText string, key string)
internal/core/security.go:128
↓ 13 callersMethodVerify2FA
(c echo.Context)
internal/handlers/auth.go:525
↓ 13 callersFunctionfe
(t)
static/js/bootstrap.bundle.min.js:6
↓ 13 callersFunctionm
static/js/bootstrap.bundle.min.js:6
↓ 12 callersFunctionGetStoredCredentials
(username string)
internal/core/webauthn.go:165
↓ 12 callersFunctionIsRateLimitExceeded
(key string, maxAttempts int)
internal/core/limiter.go:51
↓ 12 callersFunctionme
(t)
static/js/bootstrap.bundle.min.js:6
↓ 12 callersFunctionp
()
static/js/bootstrap.bundle.min.js:6
↓ 12 callersFunctiont
(e)
static/js/simplewebauthn-browser.min.js:2
↓ 11 callersFunctionValidatePassword
(password string, cfg *Config)
internal/core/security.go:46
↓ 11 callersMethoddispose
()
static/js/bootstrap.bundle.min.js:6
↓ 10 callersFunctionConsumeRecoveryCode
ConsumeRecoveryCode atomically validates and consumes a recovery code, returning true only if it was present (and is now removed).
internal/core/twofactor.go:77
↓ 10 callersFunctionHashPassword
(password string)
internal/core/security.go:87
↓ 10 callersMethodLogin
(c echo.Context)
internal/handlers/auth.go:283
↓ 10 callersFunctionbe
(t)
static/js/bootstrap.bundle.min.js:6
↓ 10 callersMethodeventName
(t)
static/js/bootstrap.bundle.min.js:6
↓ 10 callersMethodhide
()
static/js/bootstrap.bundle.min.js:6
↓ 10 callersFunctiono
static/js/bootstrap.bundle.min.js:6
↓ 10 callersFunctionr
static/js/bootstrap.bundle.min.js:6
↓ 10 callersFunctionue
(t)
static/js/bootstrap.bundle.min.js:6
↓ 9 callersMethodCompleteSetup2FA
(c echo.Context)
internal/handlers/auth.go:599
↓ 9 callersFunctionFormatDevice
(ua, platform, mobile, model string)
internal/core/security.go:215
↓ 9 callersMethodPut
(key, value string)
internal/core/geo.go:54
↓ 9 callersFunctionSendEmail
(to, subject, body string)
internal/core/email.go:59
↓ 9 callersFunctiongetEnvBool
(key string, fallback bool)
internal/core/config.go:286
↓ 9 callersFunctiont
static/js/bootstrap.bundle.min.js:6
↓ 9 callersFunctionxe
(t)
static/js/bootstrap.bundle.min.js:6
↓ 8 callersFunctionCheckPasswordHash
(password, hash string)
internal/core/security.go:92
↓ 8 callersFunctionLe
(t)
static/js/bootstrap.bundle.min.js:6
↓ 8 callersFunctionLoadConfig
()
internal/core/config.go:80
↓ 8 callersFunctionl
static/js/bootstrap.bundle.min.js:6
↓ 8 callersMethodtoggle
()
static/js/bootstrap.bundle.min.js:6
↓ 7 callersFunctionAddIPSessionIndex
AddIPSessionIndex records a session token under its origin IP so brute-force checks can look up active sessions for an IP without a full keyspace scan
internal/core/redis.go:159
↓ 7 callersMethodChangeUserPassword
(c echo.Context)
internal/handlers/admin.go:217
↓ 7 callersMethodFinishRegistration
(c echo.Context)
internal/handlers/webauthn.go:50
↓ 7 callersFunctionInitCommonPasswords
InitCommonPasswords loads the embedded common-password blocklist and records whether the check is enabled. Safe to call multiple times; the parse runs
internal/core/passwords.go:38
↓ 7 callersFunctionInvalidateOtherUserSessions
(username, currentToken string)
internal/core/redis.go:79
↓ 7 callersFunctionReserveRateLimitAttempt
(key string, limit int, decaySeconds int)
internal/core/limiter.go:71
↓ 7 callersFunctionTOTPCodeReused
TOTPCodeReused records a successfully validated TOTP code and reports whether it had already been used for this user. The first call for a (user, code
internal/core/twofactor.go:22
↓ 7 callersFunctionValidateUsername
(username string)
internal/core/security.go:363
↓ 7 callersMethod_isShown
(t=this._element)
static/js/bootstrap.bundle.min.js:6
↓ 7 callersFunctiond
static/js/bootstrap.bundle.min.js:6
↓ 7 callersFunctionpe
(t)
static/js/bootstrap.bundle.min.js:6
↓ 7 callersMethodshow
()
static/js/bootstrap.bundle.min.js:6
↓ 6 callersFunctionCountRecoveryCodes
CountRecoveryCodes returns how many unused recovery codes remain.
internal/core/twofactor.go:89
↓ 6 callersFunctionFe
(t)
static/js/bootstrap.bundle.min.js:6
↓ 6 callersFunctionGetWebAuthnCredentials
(username string)
internal/core/webauthn.go:156
↓ 6 callersFunctionHasActiveSessions
HasActiveSessions reports whether the given IP currently has a valid session. It consults the per-IP index (maintained at session issue time) rather t
internal/core/redis.go:110
↓ 6 callersMethodIsAllowedHost
(host string)
internal/core/config.go:144
↓ 6 callersMethodRead
(p []byte)
internal/core/security_test.go:16
↓ 6 callersMethodRedeem
(c echo.Context)
internal/handlers/invite.go:63
↓ 6 callersFunctionRemoveSessionIndex
(username, token string)
internal/core/redis.go:153
↓ 6 callersFunctionSend2FAModifiedNotification
(opts TwoFactorNotificationOptions)
internal/core/email.go:182
↓ 6 callersFunctionTe
(t,e,i)
static/js/bootstrap.bundle.min.js:6
↓ 6 callersFunctionUpdateUser
(username string, updates map[string]interface{})
internal/core/user.go:196
↓ 6 callersMethod_slide
(t,e=null)
static/js/bootstrap.bundle.min.js:6
↓ 6 callersFunctiona
static/js/bootstrap.bundle.min.js:6
↓ 6 callersFunctiongetEnvSlice
(key string, fallback []string)
internal/core/config.go:263
↓ 6 callersFunctioni
(e)
static/js/simplewebauthn-browser.min.js:2
↓ 6 callersFunctionsanitizeEmailHeader
(s string)
internal/core/email.go:51
↓ 5 callersFunction$e
(t)
static/js/bootstrap.bundle.min.js:6
↓ 5 callersMethodBeginRegistration
(c echo.Context)
internal/handlers/webauthn.go:20
↓ 5 callersFunctionDecrypt2FASecret
(secret string, key string)
internal/core/security.go:186
↓ 5 callersFunctionGenerateRandomString
GenerateRandomString returns a URL-safe, base64-encoded string backed by n bytes of cryptographically secure randomness. It returns an empty string if
internal/core/security.go:165
↓ 5 callersFunctionIsPrivateIP
(ipStr string)
internal/core/geo.go:271
↓ 5 callersFunctionNe
(t,e,i)
static/js/bootstrap.bundle.min.js:6
↓ 5 callersMethodSetup2FA
(c echo.Context)
internal/handlers/auth.go:572
↓ 5 callersMethod_getConfig
(t)
static/js/bootstrap.bundle.min.js:6
↓ 5 callersMethod_maybeEnableCycle
()
static/js/bootstrap.bundle.min.js:6
↓ 5 callersMethod_setAttributeIfNotExists
(t,e,i)
static/js/bootstrap.bundle.min.js:6
↓ 5 callersMethod_typeCheckConfig
(t,e=this.constructor.DefaultType)
static/js/bootstrap.bundle.min.js:6
↓ 5 callersFunctioncopyOptions
(base *redis.Options, db int)
internal/core/redis.go:265
↓ 5 callersFunctionii
(t,e)
static/js/bootstrap.bundle.min.js:6
↓ 5 callersFunctionn
static/js/bootstrap.bundle.min.js:6
↓ 5 callersFunctionnormalizeHostname
(h string)
internal/core/config.go:232
↓ 5 callersFunctionreloadReader
(path string)
internal/core/geo.go:95
↓ 5 callersFunctions
static/js/bootstrap.bundle.min.js:6
↓ 4 callersMethodChangePassword
(c echo.Context)
internal/handlers/profile.go:280
↓ 4 callersFunctionClearRecoveryCodes
ClearRecoveryCodes removes all recovery codes for a user (used when 2FA is disabled/reset).
internal/core/twofactor.go:98
↓ 4 callersMethodCreateUser
(c echo.Context)
internal/handlers/admin.go:110
next →1–100 of 675, ranked by callers