MCPcopy Create free account

hub / github.com/benjaminsgz/sienne / functions

Functions1,536 in github.com/benjaminsgz/sienne

MethodLogoutAllByUserID
(_ context.Context, userID int64, loggedOutAt time.Time)
idp-server/internal/application/session/service_test.go:42
MethodLogoutAllByUserID
(context.Context, int64, time.Time)
idp-server/internal/application/authn/service_test.go:197
MethodLogoutAllByUserID
(context.Context, int64, time.Time)
idp-server/internal/interfaces/http/middleware/admin_session_test.go:39
MethodLogoutBySessionID
(ctx context.Context, sessionID string, loggedOutAt time.Time)
idp-server/internal/infrastructure/persistence/session_repo.go:94
MethodLogoutBySessionID
(context.Context, string, time.Time)
idp-server/internal/application/authz/service_test.go:55
MethodLogoutBySessionID
(_ context.Context, _ string, loggedOutAt time.Time)
idp-server/internal/application/session/service_test.go:36
MethodLogoutBySessionID
(context.Context, string, time.Time)
idp-server/internal/application/authn/service_test.go:193
MethodLogoutBySessionID
(context.Context, string, time.Time)
idp-server/internal/interfaces/http/middleware/admin_session_test.go:35
MethodLogoutUser
(c *gin.Context)
idp-server/internal/interfaces/http/handler/admin_action_handler.go:218
MethodLookupByUsername
(c *gin.Context)
idp-server/internal/interfaces/http/handler/admin_user_lookup_handler.go:20
MethodMarkAsConsumed
(ctx context.Context, code string)
idp-server/internal/infrastructure/cache/redis/authorization_code_cache_repository.go:91
MethodMarkAsConsumed
(ctx context.Context, code string)
idp-server/internal/ports/cache/authorization_code_cache_repository.go:15
MethodMarkConsumed
(ctx context.Context, deviceCode string, consumedAt time.Time)
idp-server/internal/infrastructure/cache/redis/device_code_repository.go:96
MethodMint
(claims map[string]any)
idp-server/internal/infrastructure/crypto/jwt.go:28
MethodMint
(claims map[string]any)
idp-server/internal/application/token/service_client_credentials_test.go:96
MethodName
()
idp-server/internal/ports/plugin/client_authenticator.go:36
MethodName
()
idp-server/internal/ports/plugin/authn_method.go:48
MethodName
()
idp-server/internal/ports/plugin/grant_handler.go:41
MethodName
()
idp-server/internal/application/authn/service_test.go:470
MethodName
()
idp-server/internal/application/authn/service_test.go:510
MethodName
()
idp-server/internal/plugins/grant/password/handler.go:27
MethodName
()
idp-server/internal/plugins/grant/client_credentials/handler.go:27
MethodName
()
idp-server/internal/plugins/grant/authorization_code/handler.go:24
MethodName
()
idp-server/internal/plugins/grant/refresh_token/handler.go:24
MethodName
()
idp-server/internal/plugins/grant/device_code/handler.go:27
MethodName
()
idp-server/internal/plugins/client_auth/client_secret_basic/authenticator.go:21
MethodName
()
idp-server/internal/plugins/client_auth/none/authenticator.go:20
MethodName
()
idp-server/internal/plugins/client_auth/client_secret_post/authenticator.go:23
MethodName
()
idp-server/internal/plugins/authn/password/method.go:27
MethodName
()
idp-server/internal/plugins/authn/federated_oidc/method.go:23
FunctionNewAdminActionHandler
( rbacService apprbac.Manager, sessionService appsession.Manager, clientCreator appclient.Creator, clientR
idp-server/internal/interfaces/http/handler/admin_action_handler.go:33
FunctionNewAdminUserLookupHandler
(users repository.UserRepository)
idp-server/internal/interfaces/http/handler/admin_user_lookup_handler.go:16
FunctionNewAsyncRepository
(reader repository.AuditEventRepository, producer *Producer, syncWrite bool)
idp-server/internal/infrastructure/auditstream/repository.go:45
FunctionNewAuditEventRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/audit_event_repo.go:19
FunctionNewAuthenticator
(passwords securityport.PasswordVerifier)
idp-server/internal/plugins/client_auth/client_secret_basic/authenticator.go:17
FunctionNewAuthenticator
NewAuthenticator 返回 public client 使用的 "none" 认证实现。 这类客户端没有保密能力,所以服务端只能确认 client_id 本身, 并依赖 PKCE、redirect URI 等其他机制补足安全性。
idp-server/internal/plugins/client_auth/none/authenticator.go:16
FunctionNewAuthenticator
NewAuthenticator 提供 client_secret_post 认证方式的插件实现。 token endpoint 会先根据 client 配置选择该插件,再把表单里的 client_id/client_secret 交给它完成校验。
idp-server/internal/plugins/client_auth/client_secret_post/authenticator.go:19
FunctionNewAuthnRegistry
(methods ...pluginport.AuthnMethod)
idp-server/internal/plugins/registry/authn_registry.go:11
FunctionNewAuthorizationCodeCacheRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/authorization_code_cache_repository.go:18
FunctionNewAuthorizationCodeRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/authorization_code_repo.go:16
FunctionNewAuthorizationHandler
(authzService appauthz.Service)
idp-server/internal/interfaces/http/handler/authorize_handler.go:16
FunctionNewClient
(addr, password string, db int)
idp-server/internal/infrastructure/cache/redis/client.go:7
FunctionNewClientAuthRegistry
(authenticators ...pluginport.ClientAuthenticator)
idp-server/internal/plugins/registry/client_auth_registry.go:9
FunctionNewClientPostLogoutRedirectURIHandler
(service appclient.PostLogoutRegistrar)
idp-server/internal/interfaces/http/handler/client_post_logout_redirect_uri_handler.go:17
FunctionNewClientRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/client_repo.go:17
FunctionNewConsentRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/consent_repo.go:15
FunctionNewConsumer
(rdb *goredis.Client, writer repository.AuditEventRepository, cfg ConsumerConfig, retryKeyFn func(eventID stri
idp-server/internal/infrastructure/auditstream/consumer.go:37
FunctionNewDeviceAuthorizeHandler
(clientAuthenticator appclientauth.Authenticator, starter appdevice.Starter)
idp-server/internal/interfaces/http/handler/device_authorize_handler.go:22
FunctionNewDeviceCodeRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/device_code_repository.go:17
FunctionNewDeviceVerificationHandler
(verifier appdevice.Verifier)
idp-server/internal/interfaces/http/handler/device_verification_handler.go:29
FunctionNewEndSessionHandler
(service appsession.Manager, redirectValidator appclient.LogoutRedirectValidator)
idp-server/internal/interfaces/http/handler/end_session_handler.go:35
FunctionNewFailoverClient
(masterName string, sentinelAddrs []string, password string, db int)
idp-server/internal/infrastructure/cache/redis/client.go:15
FunctionNewGeneratedRSAKeyManager
(kid string, bits int)
idp-server/internal/infrastructure/crypto/key_manager.go:53
FunctionNewGrantRegistry
(handlers ...pluginport.GrantHandler)
idp-server/internal/plugins/registry/grant_registry.go:11
FunctionNewHandler
NewHandler 注册 password grant 的插件适配器。 这个 grant 已不推荐新系统使用,但保留该插件可以让老客户端在 明确启用时仍走统一的 token exchange 主链路。
idp-server/internal/plugins/grant/password/handler.go:20
FunctionNewHandler
NewHandler 注册 client_credentials grant 的插件适配器。 它本身不实现令牌签发逻辑,只负责把插件层输入转换成应用层 ExchangeInput,让 token service 复用统一的签发与审计路径。
idp-server/internal/plugins/grant/client_credentials/handler.go:20
FunctionNewHandler
(exchanger apptoken.Exchanger)
idp-server/internal/plugins/grant/authorization_code/handler.go:17
FunctionNewHandler
(exchanger apptoken.Exchanger)
idp-server/internal/plugins/grant/refresh_token/handler.go:17
FunctionNewHandler
NewHandler 注册 device_code grant 的插件适配器。 设备授权的轮询、授权状态判断和节流策略都在应用层,这里只承担 grant 插件统一入口的胶水职责。
idp-server/internal/plugins/grant/device_code/handler.go:20
FunctionNewJWKKeyRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/jwk_key_repo.go:27
FunctionNewJWTService
(signer *Signer)
idp-server/internal/infrastructure/crypto/jwt.go:24
FunctionNewLoggingMiddleware
(logger *log.Logger)
idp-server/internal/interfaces/http/middleware/logging.go:31
FunctionNewMFARepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/mfa_repository.go:20
FunctionNewMethod
(users repository.UserRepository, passwords securityport.PasswordVerifier)
idp-server/internal/plugins/authn/password/method.go:19
FunctionNewMethod
(connector federation.OIDCConnector)
idp-server/internal/plugins/authn/federated_oidc/method.go:16
FunctionNewMySQL
(ctx context.Context, dsn string)
idp-server/internal/infrastructure/storage/db.go:12
FunctionNewOIDCMetadataHandler
(service oidc.MetadataProvider)
idp-server/internal/interfaces/http/handler/oidc_metadata_handler.go:15
FunctionNewOIDCProvider
(cfg OIDCProviderConfig)
idp-server/internal/infrastructure/external/oidc_provider.go:58
FunctionNewOperatorRoleRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/operator_role_repo.go:16
FunctionNewPasskeyCredentialRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/passkey_credential_repo.go:15
FunctionNewPasskeyProvider
(rpID, rpDisplayName string, rpOrigins []string)
idp-server/internal/infrastructure/security/passkey.go:20
FunctionNewProducer
(rdb *goredis.Client, stream string, dedupTTL time.Duration, dedupKeyFn func(string) string)
idp-server/internal/infrastructure/auditstream/repository.go:81
FunctionNewRateLimitRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/rate_limit_repository.go:19
FunctionNewRedis
(ctx context.Context, addr, password string, db int)
idp-server/internal/infrastructure/storage/redis.go:13
FunctionNewRedisSentinel
(ctx context.Context, masterName string, sentinelAddrs []string, password string, db int)
idp-server/internal/infrastructure/storage/redis.go:21
FunctionNewReplayProtectionRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/replay_protection_repository.go:16
FunctionNewRouter
(authzService authz.Service, consentService appconsent.Manager, registerService appregister.Registrar, passwor
idp-server/internal/interfaces/http/router.go:32
FunctionNewService
(clients repository.ClientRepository, registry *pluginregistry.ClientAuthRegistry)
idp-server/internal/application/clientauth/service.go:40
FunctionNewService
( clients repository.ClientRepository, sessions repository.SessionRepository, sessionCache cache.SessionCac
idp-server/internal/application/consent/service.go:29
FunctionNewService
( sessions repository.SessionRepository, sessionCache cacheport.SessionCacheRepository, users repository.Us
idp-server/internal/application/mfa/service.go:35
FunctionNewService
( clients repository.ClientRepository, deviceCodes cacheport.DeviceCodeRepository, sessions repository.Sess
idp-server/internal/application/device/service.go:26
FunctionNewService
( sessions repository.SessionRepository, sessionCache cacheport.SessionCacheRepository, users repository.Us
idp-server/internal/application/passkey/service.go:35
FunctionNewService
(rotateNow func(ctx context.Context) (*RotateKeysResult, error))
idp-server/internal/application/keys/service.go:9
FunctionNewSessionCacheRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/session_cache_repository.go:19
FunctionNewSessionRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/session_repo.go:17
FunctionNewShortURLRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/short_url_repo.go:19
FunctionNewSigner
(keys *KeyManager)
idp-server/internal/infrastructure/crypto/signer.go:29
FunctionNewTokenCacheRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/token_cache_repository.go:22
FunctionNewTokenHandler
(clientAuthenticator appclientauth.Authenticator, grantRegistry *pluginregistry.GrantRegistry)
idp-server/internal/interfaces/http/handler/token_handler.go:25
FunctionNewTokenRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/token_repo.go:22
FunctionNewUserInfoHandler
(oidcService oidc.UserInfoProvider)
idp-server/internal/interfaces/http/handler/userinfo_handler.go:18
FunctionNewUserRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/user_repo.go:17
FunctionOAuthError
(code, description string)
idp-server/internal/interfaces/http/presenter/oauth_error.go:5
MethodParseAndValidate
(string, ValidateOptions)
idp-server/internal/application/oidc/service_test.go:117
MethodParseAndValidate
(_ string, _ ValidateOptions)
idp-server/internal/interfaces/http/middleware/auth_test.go:21
MethodParseAndValidate
(token string, opts oidc.ValidateOptions)
idp-server/internal/bootstrap/wire.go:133
MethodParseAndValidate
(token string, opts httpmiddleware.ValidateOptions)
idp-server/internal/bootstrap/wire.go:143
MethodParseAndValidateBasic
(token string, opts BasicValidateOptions)
idp-server/internal/infrastructure/crypto/jwt.go:72
MethodPollMFAChallenge
(ctx context.Context, input PollMFAChallengeInput)
idp-server/internal/application/authn/service.go:459
MethodPollMFAChallenge
(_ context.Context, _ authn.PollMFAChallengeInput)
idp-server/internal/interfaces/http/handler/login_handler_test.go:53
← previousnext →1,101–1,200 of 1,536, ranked by callers