Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arumes31/rauth
/ functions
Functions
675 in github.com/arumes31/rauth
⨍
Functions
675
◇
Types & classes
65
↓ 135 callers
Method
Get
(key string)
internal/core/geo.go:44
↓ 80 callers
Function
createTestContext
(e *echo.Echo, method, path string, f url.Values)
internal/handlers/test_helpers.go:55
↓ 41 callers
Function
setupHandlersTest
(t *testing.T)
internal/handlers/test_helpers.go:23
↓ 32 callers
Function
LogAudit
(action, username, ip string, details map[string]interface{})
internal/core/audit.go:23
↓ 30 callers
Function
ResetRateLimit
(key string)
internal/core/limiter.go:47
↓ 29 callers
Function
CheckRateLimit
(key string, maxAttempts int, decaySeconds int)
internal/core/limiter.go:27
↓ 29 callers
Method
getOrCreateInstance
(t,e={})
static/js/bootstrap.bundle.min.js:6
↓ 27 callers
Function
EncryptToken
(text string, key string)
internal/core/security.go:108
↓ 25 callers
Method
Render
(w io.Writer, name string, data interface{}, c echo.Context)
internal/handlers/xss_test.go:48
↓ 21 callers
Function
getEnv
(key, fallback string)
internal/core/config.go:256
↓ 19 callers
Function
getEnvInt
(key string, fallback int)
internal/core/config.go:276
↓ 18 callers
Function
AddSessionIndex
(username, token string)
internal/core/redis.go:149
↓ 18 callers
Function
GetCountryCode
(ipStr string)
internal/core/geo.go:187
↓ 17 callers
Function
GetUser
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 callers
Method
Validate
(c echo.Context)
internal/handlers/auth.go:66
↓ 17 callers
Function
getRD
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 callers
Method
_queueCallback
(t,e,i=!0)
static/js/bootstrap.bundle.min.js:6
↓ 15 callers
Method
Close
()
internal/core/geo.go:26
↓ 14 callers
Function
CreateUser
(username, password, email string, isAdmin bool, twoFactor string)
internal/core/user.go:131
↓ 14 callers
Function
g
(t,e=[],i=t)
static/js/bootstrap.bundle.min.js:6
↓ 13 callers
Function
DecryptToken
(encryptedText string, key string)
internal/core/security.go:128
↓ 13 callers
Method
Verify2FA
(c echo.Context)
internal/handlers/auth.go:525
↓ 13 callers
Function
fe
(t)
static/js/bootstrap.bundle.min.js:6
↓ 13 callers
Function
m
static/js/bootstrap.bundle.min.js:6
↓ 12 callers
Function
GetStoredCredentials
(username string)
internal/core/webauthn.go:165
↓ 12 callers
Function
IsRateLimitExceeded
(key string, maxAttempts int)
internal/core/limiter.go:51
↓ 12 callers
Function
me
(t)
static/js/bootstrap.bundle.min.js:6
↓ 12 callers
Function
p
()
static/js/bootstrap.bundle.min.js:6
↓ 12 callers
Function
t
(e)
static/js/simplewebauthn-browser.min.js:2
↓ 11 callers
Function
ValidatePassword
(password string, cfg *Config)
internal/core/security.go:46
↓ 11 callers
Method
dispose
()
static/js/bootstrap.bundle.min.js:6
↓ 10 callers
Function
ConsumeRecoveryCode
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 callers
Function
HashPassword
(password string)
internal/core/security.go:87
↓ 10 callers
Method
Login
(c echo.Context)
internal/handlers/auth.go:283
↓ 10 callers
Function
be
(t)
static/js/bootstrap.bundle.min.js:6
↓ 10 callers
Method
eventName
(t)
static/js/bootstrap.bundle.min.js:6
↓ 10 callers
Method
hide
()
static/js/bootstrap.bundle.min.js:6
↓ 10 callers
Function
o
static/js/bootstrap.bundle.min.js:6
↓ 10 callers
Function
r
static/js/bootstrap.bundle.min.js:6
↓ 10 callers
Function
ue
(t)
static/js/bootstrap.bundle.min.js:6
↓ 9 callers
Method
CompleteSetup2FA
(c echo.Context)
internal/handlers/auth.go:599
↓ 9 callers
Function
FormatDevice
(ua, platform, mobile, model string)
internal/core/security.go:215
↓ 9 callers
Method
Put
(key, value string)
internal/core/geo.go:54
↓ 9 callers
Function
SendEmail
(to, subject, body string)
internal/core/email.go:59
↓ 9 callers
Function
getEnvBool
(key string, fallback bool)
internal/core/config.go:286
↓ 9 callers
Function
t
static/js/bootstrap.bundle.min.js:6
↓ 9 callers
Function
xe
(t)
static/js/bootstrap.bundle.min.js:6
↓ 8 callers
Function
CheckPasswordHash
(password, hash string)
internal/core/security.go:92
↓ 8 callers
Function
Le
(t)
static/js/bootstrap.bundle.min.js:6
↓ 8 callers
Function
LoadConfig
()
internal/core/config.go:80
↓ 8 callers
Function
l
static/js/bootstrap.bundle.min.js:6
↓ 8 callers
Method
toggle
()
static/js/bootstrap.bundle.min.js:6
↓ 7 callers
Function
AddIPSessionIndex
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 callers
Method
ChangeUserPassword
(c echo.Context)
internal/handlers/admin.go:217
↓ 7 callers
Method
FinishRegistration
(c echo.Context)
internal/handlers/webauthn.go:50
↓ 7 callers
Function
InitCommonPasswords
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 callers
Function
InvalidateOtherUserSessions
(username, currentToken string)
internal/core/redis.go:79
↓ 7 callers
Function
ReserveRateLimitAttempt
(key string, limit int, decaySeconds int)
internal/core/limiter.go:71
↓ 7 callers
Function
TOTPCodeReused
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 callers
Function
ValidateUsername
(username string)
internal/core/security.go:363
↓ 7 callers
Method
_isShown
(t=this._element)
static/js/bootstrap.bundle.min.js:6
↓ 7 callers
Function
d
static/js/bootstrap.bundle.min.js:6
↓ 7 callers
Function
pe
(t)
static/js/bootstrap.bundle.min.js:6
↓ 7 callers
Method
show
()
static/js/bootstrap.bundle.min.js:6
↓ 6 callers
Function
CountRecoveryCodes
CountRecoveryCodes returns how many unused recovery codes remain.
internal/core/twofactor.go:89
↓ 6 callers
Function
Fe
(t)
static/js/bootstrap.bundle.min.js:6
↓ 6 callers
Function
GetWebAuthnCredentials
(username string)
internal/core/webauthn.go:156
↓ 6 callers
Function
HasActiveSessions
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 callers
Method
IsAllowedHost
(host string)
internal/core/config.go:144
↓ 6 callers
Method
Read
(p []byte)
internal/core/security_test.go:16
↓ 6 callers
Method
Redeem
(c echo.Context)
internal/handlers/invite.go:63
↓ 6 callers
Function
RemoveSessionIndex
(username, token string)
internal/core/redis.go:153
↓ 6 callers
Function
Send2FAModifiedNotification
(opts TwoFactorNotificationOptions)
internal/core/email.go:182
↓ 6 callers
Function
Te
(t,e,i)
static/js/bootstrap.bundle.min.js:6
↓ 6 callers
Function
UpdateUser
(username string, updates map[string]interface{})
internal/core/user.go:196
↓ 6 callers
Method
_slide
(t,e=null)
static/js/bootstrap.bundle.min.js:6
↓ 6 callers
Function
a
static/js/bootstrap.bundle.min.js:6
↓ 6 callers
Function
getEnvSlice
(key string, fallback []string)
internal/core/config.go:263
↓ 6 callers
Function
i
(e)
static/js/simplewebauthn-browser.min.js:2
↓ 6 callers
Function
sanitizeEmailHeader
(s string)
internal/core/email.go:51
↓ 5 callers
Function
$e
(t)
static/js/bootstrap.bundle.min.js:6
↓ 5 callers
Method
BeginRegistration
(c echo.Context)
internal/handlers/webauthn.go:20
↓ 5 callers
Function
Decrypt2FASecret
(secret string, key string)
internal/core/security.go:186
↓ 5 callers
Function
GenerateRandomString
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 callers
Function
IsPrivateIP
(ipStr string)
internal/core/geo.go:271
↓ 5 callers
Function
Ne
(t,e,i)
static/js/bootstrap.bundle.min.js:6
↓ 5 callers
Method
Setup2FA
(c echo.Context)
internal/handlers/auth.go:572
↓ 5 callers
Method
_getConfig
(t)
static/js/bootstrap.bundle.min.js:6
↓ 5 callers
Method
_maybeEnableCycle
()
static/js/bootstrap.bundle.min.js:6
↓ 5 callers
Method
_setAttributeIfNotExists
(t,e,i)
static/js/bootstrap.bundle.min.js:6
↓ 5 callers
Method
_typeCheckConfig
(t,e=this.constructor.DefaultType)
static/js/bootstrap.bundle.min.js:6
↓ 5 callers
Function
copyOptions
(base *redis.Options, db int)
internal/core/redis.go:265
↓ 5 callers
Function
ii
(t,e)
static/js/bootstrap.bundle.min.js:6
↓ 5 callers
Function
n
static/js/bootstrap.bundle.min.js:6
↓ 5 callers
Function
normalizeHostname
(h string)
internal/core/config.go:232
↓ 5 callers
Function
reloadReader
(path string)
internal/core/geo.go:95
↓ 5 callers
Function
s
static/js/bootstrap.bundle.min.js:6
↓ 4 callers
Method
ChangePassword
(c echo.Context)
internal/handlers/profile.go:280
↓ 4 callers
Function
ClearRecoveryCodes
ClearRecoveryCodes removes all recovery codes for a user (used when 2FA is disabled/reset).
internal/core/twofactor.go:98
↓ 4 callers
Method
CreateUser
(c echo.Context)
internal/handlers/admin.go:110
next →
1–100 of 675, ranked by callers