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
Method
LogoutAllByUserID
(_ context.Context, userID int64, loggedOutAt time.Time)
idp-server/internal/application/session/service_test.go:42
Method
LogoutAllByUserID
(context.Context, int64, time.Time)
idp-server/internal/application/authn/service_test.go:197
Method
LogoutAllByUserID
(context.Context, int64, time.Time)
idp-server/internal/interfaces/http/middleware/admin_session_test.go:39
Method
LogoutBySessionID
(ctx context.Context, sessionID string, loggedOutAt time.Time)
idp-server/internal/infrastructure/persistence/session_repo.go:94
Method
LogoutBySessionID
(context.Context, string, time.Time)
idp-server/internal/application/authz/service_test.go:55
Method
LogoutBySessionID
(_ context.Context, _ string, loggedOutAt time.Time)
idp-server/internal/application/session/service_test.go:36
Method
LogoutBySessionID
(context.Context, string, time.Time)
idp-server/internal/application/authn/service_test.go:193
Method
LogoutBySessionID
(context.Context, string, time.Time)
idp-server/internal/interfaces/http/middleware/admin_session_test.go:35
Method
LogoutUser
(c *gin.Context)
idp-server/internal/interfaces/http/handler/admin_action_handler.go:218
Method
LookupByUsername
(c *gin.Context)
idp-server/internal/interfaces/http/handler/admin_user_lookup_handler.go:20
Method
MarkAsConsumed
(ctx context.Context, code string)
idp-server/internal/infrastructure/cache/redis/authorization_code_cache_repository.go:91
Method
MarkAsConsumed
(ctx context.Context, code string)
idp-server/internal/ports/cache/authorization_code_cache_repository.go:15
Method
MarkConsumed
(ctx context.Context, deviceCode string, consumedAt time.Time)
idp-server/internal/infrastructure/cache/redis/device_code_repository.go:96
Method
Mint
(claims map[string]any)
idp-server/internal/infrastructure/crypto/jwt.go:28
Method
Mint
(claims map[string]any)
idp-server/internal/application/token/service_client_credentials_test.go:96
Method
Name
()
idp-server/internal/ports/plugin/client_authenticator.go:36
Method
Name
()
idp-server/internal/ports/plugin/authn_method.go:48
Method
Name
()
idp-server/internal/ports/plugin/grant_handler.go:41
Method
Name
()
idp-server/internal/application/authn/service_test.go:470
Method
Name
()
idp-server/internal/application/authn/service_test.go:510
Method
Name
()
idp-server/internal/plugins/grant/password/handler.go:27
Method
Name
()
idp-server/internal/plugins/grant/client_credentials/handler.go:27
Method
Name
()
idp-server/internal/plugins/grant/authorization_code/handler.go:24
Method
Name
()
idp-server/internal/plugins/grant/refresh_token/handler.go:24
Method
Name
()
idp-server/internal/plugins/grant/device_code/handler.go:27
Method
Name
()
idp-server/internal/plugins/client_auth/client_secret_basic/authenticator.go:21
Method
Name
()
idp-server/internal/plugins/client_auth/none/authenticator.go:20
Method
Name
()
idp-server/internal/plugins/client_auth/client_secret_post/authenticator.go:23
Method
Name
()
idp-server/internal/plugins/authn/password/method.go:27
Method
Name
()
idp-server/internal/plugins/authn/federated_oidc/method.go:23
Function
NewAdminActionHandler
( rbacService apprbac.Manager, sessionService appsession.Manager, clientCreator appclient.Creator, clientR
idp-server/internal/interfaces/http/handler/admin_action_handler.go:33
Function
NewAdminUserLookupHandler
(users repository.UserRepository)
idp-server/internal/interfaces/http/handler/admin_user_lookup_handler.go:16
Function
NewAsyncRepository
(reader repository.AuditEventRepository, producer *Producer, syncWrite bool)
idp-server/internal/infrastructure/auditstream/repository.go:45
Function
NewAuditEventRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/audit_event_repo.go:19
Function
NewAuthenticator
(passwords securityport.PasswordVerifier)
idp-server/internal/plugins/client_auth/client_secret_basic/authenticator.go:17
Function
NewAuthenticator
NewAuthenticator 返回 public client 使用的 "none" 认证实现。 这类客户端没有保密能力,所以服务端只能确认 client_id 本身, 并依赖 PKCE、redirect URI 等其他机制补足安全性。
idp-server/internal/plugins/client_auth/none/authenticator.go:16
Function
NewAuthenticator
NewAuthenticator 提供 client_secret_post 认证方式的插件实现。 token endpoint 会先根据 client 配置选择该插件,再把表单里的 client_id/client_secret 交给它完成校验。
idp-server/internal/plugins/client_auth/client_secret_post/authenticator.go:19
Function
NewAuthnRegistry
(methods ...pluginport.AuthnMethod)
idp-server/internal/plugins/registry/authn_registry.go:11
Function
NewAuthorizationCodeCacheRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/authorization_code_cache_repository.go:18
Function
NewAuthorizationCodeRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/authorization_code_repo.go:16
Function
NewAuthorizationHandler
(authzService appauthz.Service)
idp-server/internal/interfaces/http/handler/authorize_handler.go:16
Function
NewClient
(addr, password string, db int)
idp-server/internal/infrastructure/cache/redis/client.go:7
Function
NewClientAuthRegistry
(authenticators ...pluginport.ClientAuthenticator)
idp-server/internal/plugins/registry/client_auth_registry.go:9
Function
NewClientPostLogoutRedirectURIHandler
(service appclient.PostLogoutRegistrar)
idp-server/internal/interfaces/http/handler/client_post_logout_redirect_uri_handler.go:17
Function
NewClientRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/client_repo.go:17
Function
NewConsentRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/consent_repo.go:15
Function
NewConsumer
(rdb *goredis.Client, writer repository.AuditEventRepository, cfg ConsumerConfig, retryKeyFn func(eventID stri
idp-server/internal/infrastructure/auditstream/consumer.go:37
Function
NewDeviceAuthorizeHandler
(clientAuthenticator appclientauth.Authenticator, starter appdevice.Starter)
idp-server/internal/interfaces/http/handler/device_authorize_handler.go:22
Function
NewDeviceCodeRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/device_code_repository.go:17
Function
NewDeviceVerificationHandler
(verifier appdevice.Verifier)
idp-server/internal/interfaces/http/handler/device_verification_handler.go:29
Function
NewEndSessionHandler
(service appsession.Manager, redirectValidator appclient.LogoutRedirectValidator)
idp-server/internal/interfaces/http/handler/end_session_handler.go:35
Function
NewFailoverClient
(masterName string, sentinelAddrs []string, password string, db int)
idp-server/internal/infrastructure/cache/redis/client.go:15
Function
NewGeneratedRSAKeyManager
(kid string, bits int)
idp-server/internal/infrastructure/crypto/key_manager.go:53
Function
NewGrantRegistry
(handlers ...pluginport.GrantHandler)
idp-server/internal/plugins/registry/grant_registry.go:11
Function
NewHandler
NewHandler 注册 password grant 的插件适配器。 这个 grant 已不推荐新系统使用,但保留该插件可以让老客户端在 明确启用时仍走统一的 token exchange 主链路。
idp-server/internal/plugins/grant/password/handler.go:20
Function
NewHandler
NewHandler 注册 client_credentials grant 的插件适配器。 它本身不实现令牌签发逻辑,只负责把插件层输入转换成应用层 ExchangeInput,让 token service 复用统一的签发与审计路径。
idp-server/internal/plugins/grant/client_credentials/handler.go:20
Function
NewHandler
(exchanger apptoken.Exchanger)
idp-server/internal/plugins/grant/authorization_code/handler.go:17
Function
NewHandler
(exchanger apptoken.Exchanger)
idp-server/internal/plugins/grant/refresh_token/handler.go:17
Function
NewHandler
NewHandler 注册 device_code grant 的插件适配器。 设备授权的轮询、授权状态判断和节流策略都在应用层,这里只承担 grant 插件统一入口的胶水职责。
idp-server/internal/plugins/grant/device_code/handler.go:20
Function
NewJWKKeyRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/jwk_key_repo.go:27
Function
NewJWTService
(signer *Signer)
idp-server/internal/infrastructure/crypto/jwt.go:24
Function
NewLoggingMiddleware
(logger *log.Logger)
idp-server/internal/interfaces/http/middleware/logging.go:31
Function
NewMFARepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/mfa_repository.go:20
Function
NewMethod
(users repository.UserRepository, passwords securityport.PasswordVerifier)
idp-server/internal/plugins/authn/password/method.go:19
Function
NewMethod
(connector federation.OIDCConnector)
idp-server/internal/plugins/authn/federated_oidc/method.go:16
Function
NewMySQL
(ctx context.Context, dsn string)
idp-server/internal/infrastructure/storage/db.go:12
Function
NewOIDCMetadataHandler
(service oidc.MetadataProvider)
idp-server/internal/interfaces/http/handler/oidc_metadata_handler.go:15
Function
NewOIDCProvider
(cfg OIDCProviderConfig)
idp-server/internal/infrastructure/external/oidc_provider.go:58
Function
NewOperatorRoleRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/operator_role_repo.go:16
Function
NewPasskeyCredentialRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/passkey_credential_repo.go:15
Function
NewPasskeyProvider
(rpID, rpDisplayName string, rpOrigins []string)
idp-server/internal/infrastructure/security/passkey.go:20
Function
NewProducer
(rdb *goredis.Client, stream string, dedupTTL time.Duration, dedupKeyFn func(string) string)
idp-server/internal/infrastructure/auditstream/repository.go:81
Function
NewRateLimitRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/rate_limit_repository.go:19
Function
NewRedis
(ctx context.Context, addr, password string, db int)
idp-server/internal/infrastructure/storage/redis.go:13
Function
NewRedisSentinel
(ctx context.Context, masterName string, sentinelAddrs []string, password string, db int)
idp-server/internal/infrastructure/storage/redis.go:21
Function
NewReplayProtectionRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/replay_protection_repository.go:16
Function
NewRouter
(authzService authz.Service, consentService appconsent.Manager, registerService appregister.Registrar, passwor
idp-server/internal/interfaces/http/router.go:32
Function
NewService
(clients repository.ClientRepository, registry *pluginregistry.ClientAuthRegistry)
idp-server/internal/application/clientauth/service.go:40
Function
NewService
( clients repository.ClientRepository, sessions repository.SessionRepository, sessionCache cache.SessionCac
idp-server/internal/application/consent/service.go:29
Function
NewService
( sessions repository.SessionRepository, sessionCache cacheport.SessionCacheRepository, users repository.Us
idp-server/internal/application/mfa/service.go:35
Function
NewService
( clients repository.ClientRepository, deviceCodes cacheport.DeviceCodeRepository, sessions repository.Sess
idp-server/internal/application/device/service.go:26
Function
NewService
( sessions repository.SessionRepository, sessionCache cacheport.SessionCacheRepository, users repository.Us
idp-server/internal/application/passkey/service.go:35
Function
NewService
(rotateNow func(ctx context.Context) (*RotateKeysResult, error))
idp-server/internal/application/keys/service.go:9
Function
NewSessionCacheRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/session_cache_repository.go:19
Function
NewSessionRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/session_repo.go:17
Function
NewShortURLRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/short_url_repo.go:19
Function
NewSigner
(keys *KeyManager)
idp-server/internal/infrastructure/crypto/signer.go:29
Function
NewTokenCacheRepository
(rdb *goredis.Client, key *KeyBuilder)
idp-server/internal/infrastructure/cache/redis/token_cache_repository.go:22
Function
NewTokenHandler
(clientAuthenticator appclientauth.Authenticator, grantRegistry *pluginregistry.GrantRegistry)
idp-server/internal/interfaces/http/handler/token_handler.go:25
Function
NewTokenRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/token_repo.go:22
Function
NewUserInfoHandler
(oidcService oidc.UserInfoProvider)
idp-server/internal/interfaces/http/handler/userinfo_handler.go:18
Function
NewUserRepository
(db *sql.DB)
idp-server/internal/infrastructure/persistence/user_repo.go:17
Function
OAuthError
(code, description string)
idp-server/internal/interfaces/http/presenter/oauth_error.go:5
Method
ParseAndValidate
(string, ValidateOptions)
idp-server/internal/application/oidc/service_test.go:117
Method
ParseAndValidate
(_ string, _ ValidateOptions)
idp-server/internal/interfaces/http/middleware/auth_test.go:21
Method
ParseAndValidate
(token string, opts oidc.ValidateOptions)
idp-server/internal/bootstrap/wire.go:133
Method
ParseAndValidate
(token string, opts httpmiddleware.ValidateOptions)
idp-server/internal/bootstrap/wire.go:143
Method
ParseAndValidateBasic
(token string, opts BasicValidateOptions)
idp-server/internal/infrastructure/crypto/jwt.go:72
Method
PollMFAChallenge
(ctx context.Context, input PollMFAChallengeInput)
idp-server/internal/application/authn/service.go:459
Method
PollMFAChallenge
(_ context.Context, _ authn.PollMFAChallengeInput)
idp-server/internal/interfaces/http/handler/login_handler_test.go:53
← previous
next →
1,101–1,200 of 1,536, ranked by callers