MCPcopy Create free account

hub / github.com/benjaminsgz/sienne / functions

Functions1,536 in github.com/benjaminsgz/sienne

↓ 4 callersMethodMFAChallengeState
(challengeID string)
idp-server/internal/infrastructure/cache/redis/key.go:105
↓ 4 callersMethodMint
(claims map[string]any)
idp-server/internal/ports/security/signer.go:6
↓ 4 callersFunctionNewPasswordVerifier
()
idp-server/internal/infrastructure/security/password_verifier.go:16
↓ 4 callersFunctionNewPortalHandler
()
idp-server/internal/interfaces/http/handler/portal_handler.go:60
↓ 4 callersFunctionNormalizeSessionStateMask
NormalizeSessionStateMask 把字符串状态压缩为可按位判断的整数掩码。
idp-server/internal/ports/cache/state_mask.go:43
↓ 4 callersMethodParseAndValidate
(token string, opts ValidateOptions)
idp-server/internal/application/oidc/service.go:15
↓ 4 callersMethodRequireBearerToken
()
idp-server/internal/interfaces/http/middleware/auth.go:45
↓ 4 callersMethodSession
(sessionID string)
idp-server/internal/infrastructure/cache/redis/key.go:17
↓ 4 callersMethodSessionState
(sessionID string)
idp-server/internal/infrastructure/cache/redis/key.go:21
↓ 4 callersMethodUpsert
(ctx context.Context, model *totpdomain.Model)
idp-server/internal/ports/repository/totp_repository.go:12
↓ 4 callersMethodVerifyPassword
(password, encodedHash string)
idp-server/internal/infrastructure/security/password_verifier.go:29
↓ 4 callersMethodabortUnauthorized
(c *gin.Context, message string)
idp-server/internal/interfaces/http/middleware/admin_session.go:104
↓ 4 callersMethodgetOne
(ctx context.Context, query string, arg any)
idp-server/internal/infrastructure/persistence/user_repo.go:147
↓ 4 callersMethodloadStrings
(ctx context.Context, query string, clientID int64)
idp-server/internal/infrastructure/persistence/client_repo.go:132
↓ 4 callersMethodlookupPasskeyCredentialJSON
(ctx context.Context, userID int64)
idp-server/internal/application/authn/service.go:982
↓ 4 callersFunctionnewPasskeyUserAdapter
(user securityport.PasskeyUser, credentialJSON []string)
idp-server/internal/infrastructure/security/passkey.go:154
↓ 4 callersFunctionnormalizePushStatus
(status string)
idp-server/internal/application/authn/service.go:1193
↓ 4 callersFunctionnormalizeRedirectURIs
(values []string)
idp-server/internal/application/client/service.go:369
↓ 4 callersFunctionnullInt64
(value *int64)
idp-server/internal/infrastructure/persistence/session_repo.go:179
↓ 4 callersFunctionparseInt64
(value string)
idp-server/internal/infrastructure/cache/redis/helpers.go:42
↓ 4 callersFunctionparseInt64Field
(raw, field string)
idp-server/internal/interfaces/http/handler/admin_action_handler.go:481
↓ 4 callersFunctionrecordLoginSuccessAuditEvent
(ctx context.Context, repo repository.AuditEventRepository, c *gin.Context, resultUserID int64, subject, roleC
idp-server/internal/interfaces/http/handler/audit_authn_helper.go:15
↓ 4 callersMethodrender
(c *gin.Context, status int, data loginPushPageData)
idp-server/internal/interfaces/http/handler/login_push_handler.go:100
↓ 4 callersFunctionresolveTOTPIssuer
(cfg *config)
idp-server/internal/bootstrap/wire.go:106
↓ 4 callersFunctionsetupService
setupService creates a Service with all dependencies stubbed out.
idp-server/internal/application/authn/test_helpers_test.go:56
↓ 4 callersFunctionstringClaim
(value any)
idp-server/internal/application/oidc/service.go:215
↓ 4 callersFunctionvalidateURL
(name, value string, requireHost bool)
idp-server/internal/bootstrap/config.go:434
↓ 4 callersFunctionwriteRBACError
(c *gin.Context, err error)
idp-server/internal/interfaces/http/handler/rbac_handler.go:228
↓ 4 callersFunctionzeroAwareTime
(value time.Time)
idp-server/internal/infrastructure/cache/redis/device_code_repository.go:152
↓ 3 callersMethodAuthCodeConsumed
(code string)
idp-server/internal/infrastructure/cache/redis/key.go:33
↓ 3 callersMethodBeginSetup
(ctx context.Context, sessionID string)
idp-server/internal/application/passkey/service.go:20
↓ 3 callersMethodCreate
(ctx context.Context, input CreateInput)
idp-server/internal/application/shorturl/service.go:33
↓ 3 callersMethodCreateAccessToken
(ctx context.Context, model *tokendomain.AccessToken)
idp-server/internal/ports/repository/token_repository.go:13
↓ 3 callersMethodCreateClient
(ctx context.Context, input CreateClientInput)
idp-server/internal/application/client/service.go:32
↓ 3 callersMethodFindByUserID
(ctx context.Context, userID int64)
idp-server/internal/ports/repository/totp_repository.go:11
↓ 3 callersMethodIPLock
(ip string)
idp-server/internal/infrastructure/cache/redis/key.go:81
↓ 3 callersMethodIntrospect
(ctx context.Context, input IntrospectionInput)
idp-server/internal/application/oidc/service.go:136
↓ 3 callersMethodListByUserID
(ctx context.Context, userID int64)
idp-server/internal/ports/repository/passkey_credential_repository.go:12
↓ 3 callersMethodListCurrent
(ctx context.Context)
idp-server/internal/infrastructure/crypto/key_rotation.go:20
↓ 3 callersMethodLoginFailIP
(ip string)
idp-server/internal/infrastructure/cache/redis/key.go:73
↓ 3 callersMethodLoginFailUser
(username string)
idp-server/internal/infrastructure/cache/redis/key.go:69
↓ 3 callersMethodMFAChallenge
(challengeID string)
idp-server/internal/infrastructure/cache/redis/key.go:101
↓ 3 callersFunctionNewAuthMiddleware
(tokens tokenValidator, tokenCache cacheport.TokenCacheRepository, issuer string)
idp-server/internal/interfaces/http/middleware/auth.go:37
↓ 3 callersFunctionNewConsentHandler
(service appconsent.Manager)
idp-server/internal/interfaces/http/handler/consent_handler.go:29
↓ 3 callersFunctionNewKeyBuilder
(prefix, env string)
idp-server/internal/infrastructure/cache/redis/key.go:10
↓ 3 callersFunctionNewLogoutHandler
(service appsession.Manager)
idp-server/internal/interfaces/http/handler/logout_handler.go:18
↓ 3 callersFunctionNewOIDCProviderWithReplayCache
(cfg OIDCProviderConfig, replayCache cacheport.ReplayProtectionRepository)
idp-server/internal/infrastructure/external/oidc_provider.go:62
↓ 3 callersFunctionNewPasskeySetupHandler
(service apppasskey.Manager)
idp-server/internal/interfaces/http/handler/passkey_setup_handler.go:29
↓ 3 callersFunctionNewRegisterHandler
(service register.Registrar)
idp-server/internal/interfaces/http/handler/register_handler.go:28
↓ 3 callersFunctionNewSecretCodec
(keyMaterial string)
idp-server/internal/infrastructure/security/secret_codec.go:21
↓ 3 callersFunctionNewService
(users repository.UserRepository, accessTokens repository.TokenRepository, tokenCache cacheport.TokenCacheRepo
idp-server/internal/application/oidc/service.go:52
↓ 3 callersFunctionNewTOTPSetupHandler
(service appmfa.Manager)
idp-server/internal/interfaces/http/handler/totp_setup_handler.go:35
↓ 3 callersMethodOAuthState
(state string)
idp-server/internal/infrastructure/cache/redis/key.go:37
↓ 3 callersMethodPollMFAChallenge
(ctx context.Context, input PollMFAChallengeInput)
idp-server/internal/application/authn/service.go:32
↓ 3 callersMethodPrepare
(ctx context.Context, input PrepareInput)
idp-server/internal/application/device/types.go:22
↓ 3 callersMethodRegisterPostLogoutRedirectURIs
(ctx context.Context, input RegisterPostLogoutRedirectURIsInput)
idp-server/internal/application/client/service.go:28
↓ 3 callersMethodRegisterRedirectURIs
(ctx context.Context, input RegisterRedirectURIsInput)
idp-server/internal/application/client/service.go:24
↓ 3 callersMethodRegisterRedirectURIs
(ctx context.Context, input RegisterRedirectURIsInput)
idp-server/internal/application/client/service.go:138
↓ 3 callersMethodReplaceWith
(other *KeyManager)
idp-server/internal/infrastructure/crypto/key_manager.go:208
↓ 3 callersMethodTOTPEnrollment
(sessionID string)
idp-server/internal/infrastructure/cache/redis/key.go:97
↓ 3 callersMethodVerifyCodeWithStep
(secret, code string, now time.Time)
idp-server/internal/infrastructure/security/totp.go:63
↓ 3 callersMethodVerifyTOTP
(ctx context.Context, input VerifyTOTPInput)
idp-server/internal/application/authn/service.go:29
↓ 3 callersFunctioncanonicalMFAChallengeStateMask
(mask uint32, passkeySessionJSON string)
idp-server/internal/ports/cache/state_mask.go:148
↓ 3 callersFunctionextractQueryValue
(t *testing.T, rawURL, key string)
idp-server/internal/infrastructure/external/oidc_provider_test.go:183
↓ 3 callersFunctionfallback
(value, defaultValue string)
idp-server/internal/infrastructure/external/oidc_provider.go:393
↓ 3 callersFunctionfindActiveKey
(records []persistence.JWKKeyRecord)
idp-server/internal/infrastructure/crypto/key_rotation.go:198
↓ 3 callersFunctionformatNullableInt64
(value *int64)
idp-server/internal/infrastructure/auditstream/repository.go:149
↓ 3 callersMethodgenerateCode
(key []byte, counter int64)
idp-server/internal/infrastructure/security/totp.go:83
↓ 3 callersFunctiongetMockUser
getMockUser creates a userdomain.Model with sensible defaults for testing. It accepts optional override functions to customize the model.
idp-server/internal/application/authn/test_helpers_test.go:13
↓ 3 callersMethodincrementWithLock
( ctx context.Context, counterKey, lockKey string, counterTTL time.Duration, lockThreshold int64, lockTTL
idp-server/internal/infrastructure/cache/redis/rate_limit_repository.go:126
↓ 3 callersFunctioninsertAccessToken
(ctx context.Context, exec tokenExecutor, model *tokendomain.AccessToken)
idp-server/internal/infrastructure/persistence/token_repo.go:41
↓ 3 callersFunctioninsertRefreshToken
(ctx context.Context, exec tokenExecutor, model *tokendomain.RefreshToken)
idp-server/internal/infrastructure/persistence/token_repo.go:75
↓ 3 callersFunctioninsertStringValuesTx
(ctx context.Context, tx *sql.Tx, query string, clientDBID int64, values []string)
idp-server/internal/infrastructure/persistence/client_repo.go:243
↓ 3 callersFunctionint64Claim
(value any)
idp-server/internal/application/oidc/service.go:221
↓ 3 callersFunctionint64String
(value int64)
idp-server/internal/application/token/service.go:809
↓ 3 callersFunctionint64StringPtr
(value *int64)
idp-server/internal/application/token/service.go:813
↓ 3 callersMethodissueUserGrantTokens
(ctx context.Context, client *clientdomain.Model, user *userdomain.Model, scopes []string, now time.Time)
idp-server/internal/application/token/service.go:564
↓ 3 callersMethodloadChallengeData
(c *gin.Context)
idp-server/internal/interfaces/http/handler/login_totp_handler.go:342
↓ 3 callersMethodloadUser
(ctx context.Context, sessionID string)
idp-server/internal/application/mfa/service.go:250
↓ 3 callersMethodlookupTOTP
(ctx context.Context, userID int64)
idp-server/internal/application/authn/service.go:974
↓ 3 callersFunctionmustDecodeScopeJSON
(raw string)
idp-server/internal/application/token/service.go:693
↓ 3 callersFunctionmustReadAuthorizationCodeRepositorySQL
(fileName string)
idp-server/internal/infrastructure/persistence/authorization_code_repo_sql.go:29
↓ 3 callersFunctionmustReadConsentRepositorySQL
(fileName string)
idp-server/internal/infrastructure/persistence/consent_repo_sql.go:29
↓ 3 callersFunctionmustReadJWKKeyRepositorySQL
(fileName string)
idp-server/internal/infrastructure/persistence/jwk_key_repo_sql.go:29
↓ 3 callersFunctionmustReadPasskeyCredentialRepositorySQL
(fileName string)
idp-server/internal/infrastructure/persistence/passkey_credential_repo_sql.go:29
↓ 3 callersFunctionmustReadShortURLRepositorySQL
(fileName string)
idp-server/internal/infrastructure/persistence/short_url_repo_sql.go:29
↓ 3 callersFunctionmustReadTOTPRepositorySQL
(fileName string)
idp-server/internal/infrastructure/persistence/totp_repo_sql.go:29
↓ 3 callersFunctionnewTestJWKKeyRecord
(t *testing.T, cfg RotationConfig, kid string, active bool, rotatesAt time.Time)
idp-server/internal/infrastructure/crypto/key_rotation_test.go:142
↓ 3 callersFunctionnormalizeFederatedEmail
(value string)
idp-server/internal/application/authn/service.go:770
↓ 3 callersFunctionparseOptionalInt64
(values map[string]any, key string)
idp-server/internal/infrastructure/auditstream/consumer.go:292
↓ 3 callersFunctionparseOptionalIntField
(raw, field string)
idp-server/internal/interfaces/http/handler/admin_action_handler.go:505
↓ 3 callersFunctionparseUint32Field
(raw, field string)
idp-server/internal/interfaces/http/handler/admin_action_handler.go:493
↓ 3 callersFunctionptrTime
(value time.Time)
idp-server/internal/infrastructure/crypto/key_rotation.go:257
↓ 3 callersFunctionreadStringSlice
(v *viper.Viper, key string)
idp-server/internal/bootstrap/config.go:485
↓ 3 callersMethodrender
(c *gin.Context, status int, data loginTOTPPageData)
idp-server/internal/interfaces/http/handler/login_totp_handler.go:368
↓ 3 callersMethodrenderPage
(c *gin.Context, status int, data endSessionPageData)
idp-server/internal/interfaces/http/handler/end_session_handler.go:185
↓ 3 callersMethodrenderWorkbench
(c *gin.Context, data workbenchPageData)
idp-server/internal/interfaces/http/handler/portal_handler.go:152
↓ 3 callersMethodretryKey
(eventID string)
idp-server/internal/infrastructure/auditstream/consumer.go:246
↓ 3 callersFunctionsanitizeRequestPath
(path, rawQuery string)
idp-server/internal/interfaces/http/middleware/logging.go:68
↓ 3 callersFunctionscanRefreshToken
(row scanner)
idp-server/internal/infrastructure/persistence/token_repo.go:266
← previousnext →101–200 of 1,536, ranked by callers