Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benjaminsgz/sienne
/ functions
Functions
1,536 in github.com/benjaminsgz/sienne
⨍
Functions
1,536
◇
Types & classes
430
↓ 107 callers
Method
Error
()
idp-server/internal/infrastructure/cache/redis/lua_scripts.go:105
↓ 68 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
idp-server/internal/interfaces/http/handler/authorize_handler.go:22
↓ 58 callers
Method
Get
(ctx context.Context, sessionID string)
idp-server/internal/ports/cache/session_cache_repository.go:12
↓ 52 callers
Method
redirectWithError
(c *gin.Context, message string)
idp-server/internal/interfaces/http/handler/admin_action_handler.go:476
↓ 40 callers
Method
RequireSessionPermissions
(required ...uint32)
idp-server/internal/interfaces/http/middleware/admin_session.go:42
↓ 40 callers
Method
writer
()
idp-server/internal/infrastructure/persistence/db_router.go:23
↓ 37 callers
Method
ExecContext
(ctx context.Context, query string, args ...any)
idp-server/internal/infrastructure/persistence/token_repo.go:18
↓ 33 callers
Function
wantsHTML
(accept string)
idp-server/internal/interfaces/http/handler/consent_handler.go:111
↓ 31 callers
Method
Redirect
(c *gin.Context)
idp-server/internal/interfaces/http/handler/short_url_handler.go:58
↓ 31 callers
Function
validateCSRFToken
(c *gin.Context, submittedToken string)
idp-server/internal/interfaces/http/handler/csrf.go:38
↓ 26 callers
Function
readRedisString
(value any)
idp-server/internal/infrastructure/cache/redis/session_cache_repository.go:172
↓ 25 callers
Function
mustNewCSRFCookie
(t *testing.T)
idp-server/internal/interfaces/http/handler/csrf_test.go:8
↓ 19 callers
Method
reader
()
idp-server/internal/infrastructure/persistence/db_router.go:27
↓ 18 callers
Method
Scan
(dest ...any)
idp-server/internal/infrastructure/persistence/session_repo.go:120
↓ 18 callers
Function
currentAdminAuditContext
(c *gin.Context)
idp-server/internal/interfaces/http/handler/audit_helper.go:24
↓ 18 callers
Function
formatTime
(value time.Time)
idp-server/internal/infrastructure/cache/redis/helpers.go:18
↓ 18 callers
Function
recordAdminAuditEvent
(ctx context.Context, repo repository.AuditEventRepository, actor *adminAuditContext, eventType, subject strin
idp-server/internal/interfaces/http/handler/audit_helper.go:40
↓ 16 callers
Method
FindByID
(ctx context.Context, id int64)
idp-server/internal/ports/repository/user_repository.go:14
↓ 16 callers
Function
findCookie
(cookies []*http.Cookie, name string)
idp-server/internal/interfaces/http/handler/csrf_test.go:19
↓ 15 callers
Method
QueryRowContext
(ctx context.Context, query string, args ...any)
idp-server/internal/infrastructure/persistence/token_repo.go:19
↓ 15 callers
Function
ensureCSRFToken
(c *gin.Context)
idp-server/internal/interfaces/http/handler/csrf.go:22
↓ 15 callers
Function
parseTime
(value string)
idp-server/internal/infrastructure/cache/redis/helpers.go:23
↓ 14 callers
Method
FindByClientID
(ctx context.Context, clientID string)
idp-server/internal/ports/repository/client_repository.go:11
↓ 14 callers
Function
NewLoginHandler
(authnService authn.Authenticator, federatedOIDCEnabled bool, auditRepo ...repository.AuditEventRepository)
idp-server/internal/interfaces/http/handler/login_handler.go:35
↓ 14 callers
Function
mustReadClientRepositorySQL
(fileName string)
idp-server/internal/infrastructure/persistence/client_repo_sql.go:51
↓ 14 callers
Function
mustReadUserRepositorySQL
(fileName string)
idp-server/internal/infrastructure/persistence/user_repo_sql.go:51
↓ 13 callers
Function
nullString
(value string)
idp-server/internal/infrastructure/persistence/session_repo.go:163
↓ 12 callers
Method
Create
(ctx context.Context, input CreateInput)
idp-server/internal/application/shorturl/types.go:19
↓ 12 callers
Function
newDBRouter
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/db_router.go:10
↓ 12 callers
Method
redirectWithNotice
(c *gin.Context, message string)
idp-server/internal/interfaces/http/handler/admin_action_handler.go:471
↓ 11 callers
Function
durationSeconds
(ttl time.Duration)
idp-server/internal/infrastructure/cache/redis/helpers.go:8
↓ 11 callers
Function
mustReadTokenRepositorySQL
(fileName string)
idp-server/internal/infrastructure/persistence/token_repo_sql.go:49
↓ 11 callers
Function
runScript
(ctx context.Context, script *goredis.Script, rdb goredis.Scripter, keys []string, args ...any)
idp-server/internal/infrastructure/cache/redis/lua_scripts.go:67
↓ 10 callers
Method
FindByUsername
(ctx context.Context, username string)
idp-server/internal/ports/repository/user_repository.go:17
↓ 10 callers
Function
contains
(values []string, expected string)
idp-server/internal/application/token/service.go:758
↓ 10 callers
Function
mustLoadScript
(name string)
idp-server/internal/infrastructure/cache/redis/lua_scripts.go:50
↓ 10 callers
Function
stringify
(value any)
idp-server/cmd/replay_audit_dlq/main.go:108
↓ 10 callers
Function
withReturnTo
(loginURI, returnTo string)
idp-server/internal/interfaces/http/handler/authorize_handler.go:151
↓ 9 callers
Method
Authenticate
(ctx context.Context, input AuthenticateInput)
idp-server/internal/ports/plugin/authn_method.go:50
↓ 9 callers
Method
FindBySessionID
(ctx context.Context, sessionID string)
idp-server/internal/ports/repository/session_repository.go:13
↓ 9 callers
Function
NewService
( userRepo repository.UserRepository, sessionRepo repository.SessionRepository, sessionCache cache.SessionC
idp-server/internal/application/authn/service.go:70
↓ 9 callers
Function
validateLocalRedirectTarget
(target string)
idp-server/internal/interfaces/http/handler/redirect_validation.go:11
↓ 9 callers
Function
writeCSRFError
(c *gin.Context)
idp-server/internal/interfaces/http/handler/csrf.go:56
↓ 8 callers
Method
Authenticate
(ctx context.Context, input AuthenticateInput)
idp-server/internal/application/authn/service.go:125
↓ 8 callers
Method
GetMFAChallenge
(ctx context.Context, challengeID string)
idp-server/internal/ports/cache/mfa_repository.go:17
↓ 8 callers
Function
ptrInt64
(value int64)
idp-server/internal/interfaces/http/handler/audit_helper.go:71
↓ 8 callers
Function
readEnv
(key, fallback string)
idp-server/cmd/replay_audit_dlq/main.go:79
↓ 8 callers
Function
readStringField
(values map[string]any, key string)
idp-server/internal/infrastructure/auditstream/consumer.go:304
↓ 8 callers
Function
runWithPool
(ctx context.Context, pool *workerPool, fn func(context.Context) (T, error))
idp-server/internal/application/authn/worker_pool.go:61
↓ 7 callers
Function
DefaultRateLimitPolicy
()
idp-server/internal/application/authn/types.go:37
↓ 7 callers
Function
NewLoginTOTPHandler
(authnService authn.Authenticator, auditRepo ...repository.AuditEventRepository)
idp-server/internal/interfaces/http/handler/login_totp_handler.go:37
↓ 7 callers
Method
RefreshToken
(tokenSHA256 string)
idp-server/internal/infrastructure/cache/redis/key.go:49
↓ 7 callers
Function
firstStringClaim
(claims map[string]any, keys ...string)
idp-server/internal/infrastructure/external/oidc_provider.go:371
↓ 7 callers
Function
loadConfig
()
idp-server/internal/bootstrap/config.go:152
↓ 7 callers
Function
loadScripts
()
idp-server/internal/infrastructure/cache/redis/lua_scripts.go:32
↓ 7 callers
Function
normalizeMFAMode
(mode string)
idp-server/internal/application/authn/service.go:1157
↓ 6 callers
Method
AuthCode
(code string)
idp-server/internal/infrastructure/cache/redis/key.go:29
↓ 6 callers
Method
DeviceCode
(deviceCode string)
idp-server/internal/infrastructure/cache/redis/key.go:89
↓ 6 callers
Function
LoadKeyManagerFromRepository
(ctx context.Context, source signingKeySource, workingDir string)
idp-server/internal/infrastructure/crypto/key_loader.go:32
↓ 6 callers
Function
NewRBACHandler
(service apprbac.Manager, audit repository.AuditEventRepository)
idp-server/internal/interfaces/http/handler/rbac_handler.go:21
↓ 6 callers
Function
NewSessionPermissionMiddleware
(sessions repository.SessionRepository, sessionCache cacheport.SessionCacheRepository, users repository.UserRe
idp-server/internal/interfaces/http/middleware/admin_session.go:31
↓ 6 callers
Method
SaveMFAChallenge
(ctx context.Context, entry MFAChallengeEntry, ttl time.Duration)
idp-server/internal/ports/cache/mfa_repository.go:16
↓ 6 callers
Method
Type
()
idp-server/internal/ports/plugin/authn_method.go:49
↓ 6 callers
Method
VerifyPassword
(password, encodedHash string)
idp-server/internal/ports/security/password_verifier.go:7
↓ 6 callers
Function
clearConfigEnv
(t *testing.T)
idp-server/internal/bootstrap/config_test.go:220
↓ 6 callers
Function
containsString
(values []string, expected string)
idp-server/internal/application/client/service.go:449
↓ 6 callers
Function
mustReadOperatorRoleRepositorySQL
(fileName string)
idp-server/internal/infrastructure/persistence/operator_role_repo_sql.go:35
↓ 6 callers
Function
nullTime
(value *time.Time)
idp-server/internal/infrastructure/persistence/session_repo.go:171
↓ 6 callers
Function
parseDelimitedValues
(raw string)
idp-server/internal/interfaces/http/handler/admin_action_handler.go:534
↓ 6 callers
Method
render
(c *gin.Context, status int, data totpSetupPageData)
idp-server/internal/interfaces/http/handler/totp_setup_handler.go:152
↓ 6 callers
Method
renderLoginPage
(c *gin.Context, status int, data loginPageData)
idp-server/internal/interfaces/http/handler/login_handler.go:340
↓ 6 callers
Method
renderPage
(c *gin.Context, status int, data devicePageData)
idp-server/internal/interfaces/http/handler/device_verification_handler.go:97
↓ 6 callers
Function
resolveBrowserPostLoginRedirect
(returnTo, upstreamRedirectURI, roleCode string)
idp-server/internal/interfaces/http/handler/post_login_redirect.go:9
↓ 6 callers
Function
sha256Hex
(value string)
idp-server/internal/application/token/service.go:767
↓ 6 callers
Method
write
(c *gin.Context, status int, data auditConsolePageData)
idp-server/internal/interfaces/http/handler/audit_console_handler.go:211
↓ 6 callers
Function
writeTempConfig
(t *testing.T, content string)
idp-server/internal/bootstrap/config_test.go:210
↓ 5 callers
Method
Authenticate
(ctx context.Context, input AuthenticateInput)
idp-server/internal/application/authn/service.go:28
↓ 5 callers
Method
Delete
(ctx context.Context, sessionID string)
idp-server/internal/ports/cache/session_cache_repository.go:13
↓ 5 callers
Method
Exchange
(ctx context.Context, input ExchangeInput)
idp-server/internal/ports/plugin/grant_handler.go:43
↓ 5 callers
Method
Exchange
(ctx context.Context, input ExchangeInput)
idp-server/internal/application/token/service.go:78
↓ 5 callers
Method
FindByRoleCode
(ctx context.Context, roleCode string)
idp-server/internal/ports/repository/operator_role_repository.go:14
↓ 5 callers
Function
NewService
(clients repository.ClientRepository, passwords securityport.PasswordVerifier)
idp-server/internal/application/client/service.go:40
↓ 5 callers
Function
NewService
(roles repository.OperatorRoleRepository, users repository.UserRepository)
idp-server/internal/application/rbac/service.go:31
↓ 5 callers
Function
NewService
(repo repository.ShortURLRepository)
idp-server/internal/application/shorturl/service.go:26
↓ 5 callers
Function
NewService
( authCodes repository.AuthorizationCodeRepository, clients repository.ClientRepository, users repository.U
idp-server/internal/application/token/service.go:51
↓ 5 callers
Method
UserLock
(userID string)
idp-server/internal/infrastructure/cache/redis/key.go:77
↓ 5 callers
Method
UserSessionIndex
(userID string)
idp-server/internal/infrastructure/cache/redis/key.go:25
↓ 5 callers
Method
cacheAccessToken
(ctx context.Context, model *tokendomain.AccessToken, clientID string, userID string, ttl time.Duration)
idp-server/internal/application/token/service.go:675
↓ 5 callers
Method
createSession
(ctx context.Context, user *userdomain.Model, methodType pluginport.AuthnMethodType, ipAddress, userAgent, red
idp-server/internal/application/authn/service.go:1071
↓ 5 callers
Function
mustReadSessionRepositorySQL
(fileName string)
idp-server/internal/infrastructure/persistence/session_repo_sql.go:35
↓ 5 callers
Method
renderRegisterPage
(c *gin.Context, status int, data registerPageData)
idp-server/internal/interfaces/http/handler/register_handler.go:139
↓ 5 callers
Method
validateClientSecret
(secretHash, presentedSecret string)
idp-server/internal/application/token/service.go:522
↓ 5 callers
Function
wantsRegisterHTML
(accept string)
idp-server/internal/interfaces/http/handler/register_handler.go:134
↓ 4 callers
Method
AccessToken
(tokenSHA256 string)
idp-server/internal/infrastructure/cache/redis/key.go:45
↓ 4 callers
Method
ActiveSigningKey
()
idp-server/internal/infrastructure/crypto/key_manager.go:147
↓ 4 callers
Method
ClearUserLock
(ctx context.Context, userID string)
idp-server/internal/ports/cache/rate_limit_repository.go:23
↓ 4 callers
Method
DeleteMFAChallenge
(ctx context.Context, challengeID string)
idp-server/internal/ports/cache/mfa_repository.go:18
↓ 4 callers
Method
FindByUserUUID
(ctx context.Context, userUUID string)
idp-server/internal/ports/repository/user_repository.go:15
↓ 4 callers
Method
HashPassword
(password string)
idp-server/internal/ports/security/password_verifier.go:6
↓ 4 callers
Method
List
(ctx context.Context, input ListAuditEventsInput)
idp-server/internal/ports/repository/audit_event_repository.go:24
next →
1–100 of 1,536, ranked by callers