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
↓ 1 callers
Method
IsUserLocked
(ctx context.Context, userID string)
idp-server/internal/ports/cache/rate_limit_repository.go:22
↓ 1 callers
Method
JWKS
(ctx context.Context)
idp-server/internal/application/oidc/service.go:28
↓ 1 callers
Method
ListActiveAccessTokensByUserID
(ctx context.Context, userID int64)
idp-server/internal/application/session/service.go:22
↓ 1 callers
Method
ListActiveByUserID
(ctx context.Context, userID int64)
idp-server/internal/ports/repository/session_repository.go:14
↓ 1 callers
Method
ListActiveRefreshTokensByUserID
(ctx context.Context, userID int64)
idp-server/internal/application/session/service.go:23
↓ 1 callers
Method
ListByRoleCode
(ctx context.Context, roleCode string, limit int)
idp-server/internal/ports/repository/user_repository.go:18
↓ 1 callers
Method
ListCurrent
(ctx context.Context)
idp-server/internal/infrastructure/crypto/key_loader.go:20
↓ 1 callers
Method
ListFiltered
(input repository.ListAuditEventsInput)
idp-server/internal/interfaces/http/handler/rbac_handler_test.go:35
↓ 1 callers
Method
ListUserSessionIDs
(ctx context.Context, userID string)
idp-server/internal/ports/cache/session_cache_repository.go:16
↓ 1 callers
Method
LockAccount
(ctx context.Context, id int64, updatedAt time.Time)
idp-server/internal/application/authn/service.go:64
↓ 1 callers
Method
Logout
(ctx context.Context, input LogoutInput)
idp-server/internal/application/session/service.go:56
↓ 1 callers
Method
LogoutAll
(ctx context.Context, input LogoutAllInput)
idp-server/internal/application/session/service.go:17
↓ 1 callers
Method
LogoutAll
(ctx context.Context, input LogoutAllInput)
idp-server/internal/application/session/service.go:96
↓ 1 callers
Method
LogoutAllByUserID
(ctx context.Context, userID int64, loggedOutAt time.Time)
idp-server/internal/ports/repository/session_repository.go:16
↓ 1 callers
Function
MFAModeFromStateMask
MFAModeFromStateMask 从状态位恢复兼容旧流程的 mode。
idp-server/internal/ports/cache/state_mask.go:114
↓ 1 callers
Function
MFAPushStatusFromStateMask
MFAPushStatusFromStateMask 从状态位恢复兼容旧流程的 push status。
idp-server/internal/ports/cache/state_mask.go:136
↓ 1 callers
Method
MarkConsumed
(ctx context.Context, deviceCode string, consumedAt time.Time)
idp-server/internal/ports/cache/device_code_repository.go:15
↓ 1 callers
Function
NewAdminConsoleHandler
(rbacService apprbac.Manager, users repository.UserRepository)
idp-server/internal/interfaces/http/handler/admin_console_handler.go:57
↓ 1 callers
Function
NewAdminUserLogoutHandler
(service appsession.Manager, audit repository.AuditEventRepository)
idp-server/internal/interfaces/http/handler/admin_user_logout_handler.go:20
↓ 1 callers
Function
NewAuditEventRepositoryRW
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/audit_event_repo.go:23
↓ 1 callers
Function
NewAuthorizationCodeRepositoryRW
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/authorization_code_repo.go:20
↓ 1 callers
Function
NewClientHandler
(service appclient.Creator)
idp-server/internal/interfaces/http/handler/client_handler.go:17
↓ 1 callers
Function
NewClientRedirectURIHandler
(service appclient.Registrar)
idp-server/internal/interfaces/http/handler/client_redirect_uri_handler.go:17
↓ 1 callers
Function
NewClientRepositoryRW
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/client_repo.go:21
↓ 1 callers
Function
NewConsentRepositoryRW
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/consent_repo.go:19
↓ 1 callers
Function
NewJWKKeyRepositoryRW
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/jwk_key_repo.go:31
↓ 1 callers
Function
NewKeySyncBroadcaster
(rdb *redis.Client, keyPrefix string)
idp-server/internal/infrastructure/crypto/key_sync.go:17
↓ 1 callers
Function
NewLogoutAllHandler
(service appsession.Manager)
idp-server/internal/interfaces/http/handler/logout_all_handler.go:18
↓ 1 callers
Function
NewOperatorRoleRepositoryRW
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/operator_role_repo.go:20
↓ 1 callers
Function
NewPasskeyCredentialRepositoryRW
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/passkey_credential_repo.go:19
↓ 1 callers
Function
NewService
(users repository.UserRepository, passwords securityport.PasswordVerifier, rateLimit ...cacheport.RateLimitRep
idp-server/internal/application/register/service.go:42
↓ 1 callers
Function
NewService
( clients repository.ClientRepository, sessions repository.SessionRepository, sessionCache cache.SessionCac
idp-server/internal/application/authz/service.go:37
↓ 1 callers
Function
NewSessionRepositoryRW
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/session_repo.go:21
↓ 1 callers
Function
NewSessionRepositoryRWWithPolicy
(writeDB, readDB *sql.DB, forcePrimaryReadByID bool)
idp-server/internal/infrastructure/persistence/session_repo.go:25
↓ 1 callers
Function
NewShortURLRepositoryRW
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/short_url_repo.go:23
↓ 1 callers
Function
NewTOTPRepositoryRW
(writeDB, readDB *sql.DB, codec secretCodec)
idp-server/internal/infrastructure/persistence/totp_repo.go:26
↓ 1 callers
Function
NewTokenRepositoryRW
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/token_repo.go:26
↓ 1 callers
Function
NewTokenRepositoryRWWithPolicy
(writeDB, readDB *sql.DB, forcePrimaryReadBySHA256 bool)
idp-server/internal/infrastructure/persistence/token_repo.go:30
↓ 1 callers
Function
NewUserRepositoryRW
(writeDB, readDB *sql.DB)
idp-server/internal/infrastructure/persistence/user_repo.go:21
↓ 1 callers
Method
OAuthWorkbench
(c *gin.Context)
idp-server/internal/interfaces/http/handler/portal_handler.go:118
↓ 1 callers
Method
ParseAndValidate
(token string, opts ValidateOptions)
idp-server/internal/infrastructure/crypto/jwt.go:35
↓ 1 callers
Method
ParseAndValidate
(token string, opts ValidateOptions)
idp-server/internal/interfaces/http/middleware/auth.go:22
↓ 1 callers
Method
ProvisioningURI
(issuer, accountName, secret string)
idp-server/internal/ports/security/totp.go:9
↓ 1 callers
Method
PublicKeyByKID
(kid string)
idp-server/internal/infrastructure/crypto/key_manager.go:164
↓ 1 callers
Method
Publish
(ctx context.Context, model *auditdomain.Model)
idp-server/internal/infrastructure/auditstream/repository.go:90
↓ 1 callers
Method
Register
(ctx context.Context, input RegisterInput)
idp-server/internal/application/register/service.go:22
↓ 1 callers
Method
RemoveUserSessionIndex
(ctx context.Context, userID string, sessionID string)
idp-server/internal/ports/cache/session_cache_repository.go:17
↓ 1 callers
Method
ResetLoginFailByIP
(ctx context.Context, ip string)
idp-server/internal/ports/cache/rate_limit_repository.go:17
↓ 1 callers
Method
Resolve
(ctx context.Context, input ResolveInput)
idp-server/internal/application/shorturl/types.go:23
↓ 1 callers
Method
RevokeAccessToken
(ctx context.Context, tokenSHA256 string, ttl time.Duration)
idp-server/internal/ports/cache/token_cache_repository.go:18
↓ 1 callers
Method
RevokeAccessTokensByUserID
(ctx context.Context, userID int64, revokedAt time.Time)
idp-server/internal/application/session/service.go:24
↓ 1 callers
Method
RevokeRefreshToken
(ctx context.Context, tokenSHA256 string, ttl time.Duration)
idp-server/internal/ports/cache/token_cache_repository.go:19
↓ 1 callers
Method
RevokeRefreshTokensByUserID
(ctx context.Context, userID int64, revokedAt time.Time)
idp-server/internal/application/session/service.go:25
↓ 1 callers
Method
RoleUsage
(ctx context.Context)
idp-server/internal/application/rbac/service.go:109
↓ 1 callers
Method
RotateNow
(ctx context.Context, input RotateKeysInput)
idp-server/internal/application/keys/types.go:21
↓ 1 callers
Method
RotateRefreshToken
(ctx context.Context, oldTokenSHA256 string, revokedAt time.Time, newToken *tokendomain.RefreshToken)
idp-server/internal/ports/repository/token_repository.go:18
↓ 1 callers
Method
RotateRefreshToken
(_ context.Context, _ string, _ time.Time, _ *tokendomain.RefreshToken)
idp-server/internal/application/token/service_client_credentials_test.go:70
↓ 1 callers
Method
RotateRefreshToken
(context.Context, string, time.Time, *tokendomain.RefreshToken)
idp-server/internal/application/token/service_refresh_token_test.go:90
↓ 1 callers
Method
RotateRefreshToken
(context.Context, string, time.Time, *tokendomain.RefreshToken)
idp-server/internal/application/token/service_password_test.go:80
↓ 1 callers
Function
RotateSigningKeyNow
( ctx context.Context, repo interface { ListCurrent(ctx context.Context) ([]persistence.JWKKeyRecord, erro
idp-server/internal/infrastructure/crypto/key_rotation.go:80
↓ 1 callers
Method
SaveAccessToken
(ctx context.Context, entry AccessTokenCacheEntry, ttl time.Duration)
idp-server/internal/ports/cache/token_cache_repository.go:10
↓ 1 callers
Method
SaveRefreshToken
(ctx context.Context, entry RefreshTokenCacheEntry, ttl time.Duration)
idp-server/internal/ports/cache/token_cache_repository.go:13
↓ 1 callers
Method
SaveState
(ctx context.Context, state string, value map[string]string, ttl time.Duration)
idp-server/internal/ports/cache/replay_protection_repository.go:11
↓ 1 callers
Method
SaveTOTPEnrollment
(ctx context.Context, entry TOTPEnrollmentEntry, ttl time.Duration)
idp-server/internal/ports/cache/mfa_repository.go:11
↓ 1 callers
Method
ScopeList
()
idp-server/internal/interfaces/http/dto/device.go:10
↓ 1 callers
Method
ScopeList
()
idp-server/internal/interfaces/http/dto/authorize.go:17
↓ 1 callers
Method
ScopeList
()
idp-server/internal/interfaces/http/dto/token.go:61
↓ 1 callers
Function
SessionStatusFromMask
SessionStatusFromMask 从位掩码恢复兼容旧接口的字符串状态。
idp-server/internal/ports/cache/state_mask.go:58
↓ 1 callers
Method
SignJWT
(claims map[string]any)
idp-server/internal/infrastructure/crypto/signer.go:33
↓ 1 callers
Method
Start
(ctx context.Context)
idp-server/internal/infrastructure/auditstream/consumer.go:46
↓ 1 callers
Method
Start
(ctx context.Context, input StartInput)
idp-server/internal/application/device/types.go:18
↓ 1 callers
Function
StartRotationLoop
(repo rotationRepository, manager *KeyManager, cfg RotationConfig, broadcaster *KeySyncBroadcaster)
idp-server/internal/infrastructure/crypto/key_rotation.go:50
↓ 1 callers
Method
Subscribe
(ctx context.Context, manager *KeyManager, repo rotationRepository, workingDir string)
idp-server/internal/infrastructure/crypto/key_sync.go:35
↓ 1 callers
Method
SupportWorkbench
(c *gin.Context)
idp-server/internal/interfaces/http/handler/portal_handler.go:104
↓ 1 callers
Method
TouchPoll
(ctx context.Context, deviceCode string, polledAt time.Time, minInterval time.Duration)
idp-server/internal/ports/cache/device_code_repository.go:16
↓ 1 callers
Method
UnlockAccount
(ctx context.Context, id int64, updatedAt time.Time)
idp-server/internal/application/register/service.go:141
↓ 1 callers
Method
Update
(ctx context.Context, model *operatorroledomain.Model)
idp-server/internal/ports/repository/operator_role_repository.go:12
↓ 1 callers
Method
UpdatePasswordHash
(ctx context.Context, id int64, passwordHash string, updatedAt time.Time)
idp-server/internal/application/register/service.go:137
↓ 1 callers
Method
UpdateRoleAndPrivilege
(ctx context.Context, id int64, roleCode string, privilegeMask uint32, tenantScope string)
idp-server/internal/ports/repository/user_repository.go:20
↓ 1 callers
Method
Upsert
(_ context.Context, model *operatorroledomain.Model)
idp-server/internal/application/rbac/service_test.go:18
↓ 1 callers
Method
UpsertActiveConsent
(ctx context.Context, userID, clientID int64, scopes []string, grantedAt time.Time)
idp-server/internal/ports/repository/consent_repository.go:11
↓ 1 callers
Method
Validate
()
idp-server/internal/interfaces/http/dto/introspect.go:16
↓ 1 callers
Method
Validate
()
idp-server/internal/interfaces/http/dto/token.go:26
↓ 1 callers
Method
ValidatePostLogoutRedirectURI
(ctx context.Context, input ValidatePostLogoutRedirectURIInput)
idp-server/internal/application/client/types.go:86
↓ 1 callers
Method
VerifyJWT
(token string)
idp-server/internal/infrastructure/crypto/signer.go:75
↓ 1 callers
Method
VerifyMFAPasskey
(ctx context.Context, input VerifyMFAPasskeyInput)
idp-server/internal/application/authn/service.go:31
↓ 1 callers
Function
allContained
(values, allowed []string)
idp-server/internal/application/authz/service.go:228
↓ 1 callers
Function
allContained
(values, allowed []string)
idp-server/internal/application/device/service.go:226
↓ 1 callers
Method
allocateFederatedUsername
(ctx context.Context, result *pluginport.AuthenticateResult, userUUID string)
idp-server/internal/application/authn/service.go:705
↓ 1 callers
Method
beginAuthentication
(ctx context.Context, metadata *oidcDiscoveryDocument, redirectURI, returnTo string)
idp-server/internal/infrastructure/external/oidc_provider.go:117
↓ 1 callers
Function
boolString
(value bool)
idp-server/internal/infrastructure/cache/redis/helpers.go:29
↓ 1 callers
Function
buildAuthorizationURL
(endpoint, clientID, redirectURI, state, nonce string, scopes []string)
idp-server/internal/infrastructure/external/oidc_provider.go:422
↓ 1 callers
Function
buildAuthorizeErrorRedirect
(redirectURI string, oauthErr pkgoauth2.Error, state string)
idp-server/internal/interfaces/http/handler/authorize_handler.go:132
↓ 1 callers
Function
buildAuthorizeSuccessRedirect
(redirectURI, code, state string)
idp-server/internal/interfaces/http/handler/authorize_handler.go:78
↓ 1 callers
Function
buildDedupKey
(eventID string, dedupKeyFn func(string) string)
idp-server/internal/infrastructure/auditstream/repository.go:126
↓ 1 callers
Function
buildDenyRedirect
(redirectURI, state string)
idp-server/internal/application/consent/service.go:207
↓ 1 callers
Function
buildFederatedOIDCProvider
(cfg *config, replayCache cacheport.ReplayProtectionRepository)
idp-server/internal/bootstrap/wire.go:40
↓ 1 callers
Function
buildMySQLDSN
(v *viper.Viper)
idp-server/internal/bootstrap/config.go:452
↓ 1 callers
Function
buildPostLogoutRedirect
(redirectURI, state string)
idp-server/internal/interfaces/http/handler/end_session_handler.go:215
↓ 1 callers
Function
buildPrivilegePresets
(roles []apprbac.RoleView)
idp-server/internal/interfaces/http/handler/admin_console_handler.go:166
← previous
next →
401–500 of 1,536, ranked by callers