MCPcopy Create free account

hub / github.com/benjaminsgz/sienne / types & classes

Types & classes430 in github.com/benjaminsgz/sienne

StructAccessToken
AccessToken 表示一条已签发 access token 的持久化记录。
idp-server/internal/domain/token/model.go:15
StructAccessTokenCacheEntry
AccessTokenCacheEntry 是 access token 在缓存中的元数据投影。
idp-server/internal/ports/cache/token_cache_repository.go:49
InterfaceAccountUnlocker
idp-server/internal/application/register/service.go:29
StructAdminActionHandler
idp-server/internal/interfaces/http/handler/admin_action_handler.go:21
StructAdminConsoleHandler
idp-server/internal/interfaces/http/handler/admin_console_handler.go:16
StructAdminLogoutUserInput
idp-server/internal/application/session/types.go:24
StructAdminResetPasswordInput
AdminResetPasswordInput / Result 表示后台重置用户密码动作的输入输出。
idp-server/internal/application/register/types.go:43
StructAdminResetPasswordResult
idp-server/internal/application/register/types.go:48
StructAdminUnlockUserInput
AdminUnlockUserInput / Result 表示后台解锁用户账号动作的输入输出。
idp-server/internal/application/register/types.go:55
StructAdminUnlockUserResult
idp-server/internal/application/register/types.go:59
StructAdminUserLogoutHandler
idp-server/internal/interfaces/http/handler/admin_user_logout_handler.go:15
StructAdminUserLookupHandler
idp-server/internal/interfaces/http/handler/admin_user_lookup_handler.go:12
StructApp
App 是启动阶段产出的顶层运行对象。 当前只暴露 Router,因为这个二进制的唯一职责是提供 HTTP 服务; 如果未来需要优雅停机、后台任务或健康探针对象,也可以继续在这里扩展。
idp-server/internal/bootstrap/wire.go:21
StructAssignRoleInput
idp-server/internal/application/rbac/types.go:34
StructAssignRoleRequest
AssignRoleRequest 描述把某个角色授予用户/主体时需要的输入。 privilege_mask 允许在继承角色默认权限之外做额外收窄或扩展, tenant_scope 则把授权限定在某个租户/命名空间内。
idp-server/internal/interfaces/http/dto/rbac.go:6
StructAssignRoleResult
idp-server/internal/application/rbac/types.go:41
StructAsyncRepository
idp-server/internal/infrastructure/auditstream/repository.go:39
StructAuditConsoleHandler
idp-server/internal/interfaces/http/handler/audit_console_handler.go:17
InterfaceAuditEventRepository
AuditEventRepository 定义审计事件的写入与分页查询接口。
idp-server/internal/ports/repository/audit_event_repository.go:22
StructAuditEventRepository
idp-server/internal/infrastructure/persistence/audit_event_repo.go:15
StructAuthMiddleware
AuthMiddleware 负责把 Bearer Token 校验结果注入 Gin 上下文。 它位于 HTTP 边界层,因此只做协议相关判断,不直接碰业务仓储。
idp-server/internal/interfaces/http/middleware/auth.go:31
StructAuthenticateInput
idp-server/internal/ports/plugin/authn_method.go:18
StructAuthenticateInput
idp-server/internal/application/clientauth/service.go:18
StructAuthenticateInput
idp-server/internal/application/authn/types.go:48
StructAuthenticateResult
idp-server/internal/ports/plugin/authn_method.go:31
StructAuthenticateResult
idp-server/internal/application/clientauth/service.go:24
StructAuthenticateResult
idp-server/internal/application/authn/types.go:61
InterfaceAuthenticator
idp-server/internal/application/clientauth/service.go:14
InterfaceAuthenticator
idp-server/internal/application/authn/service.go:27
StructAuthenticator
idp-server/internal/plugins/client_auth/client_secret_basic/authenticator.go:13
StructAuthenticator
idp-server/internal/plugins/client_auth/none/authenticator.go:11
StructAuthenticator
idp-server/internal/plugins/client_auth/client_secret_post/authenticator.go:12
InterfaceAuthnMethod
AuthnMethod 定义了“一个可插拔登录方式”最小需要提供的能力。
idp-server/internal/ports/plugin/authn_method.go:47
TypeAliasAuthnMethodType
AuthnMethodType 是登录方式插件的稳定标识。 应用层通过这个枚举选择认证策略,而不是直接依赖具体实现类型。
idp-server/internal/ports/plugin/authn_method.go:11
StructAuthnRegistry
AuthnRegistry 是认证方式插件的查找表。 应用层只关心“按 method type 找到实现”,不需要知道具体是密码、联邦 OIDC 还是别的方式。
idp-server/internal/plugins/registry/authn_registry.go:7
StructAuthorizationCodeCacheEntry
AuthorizationCodeCacheEntry 是授权码在缓存中的最小状态投影。
idp-server/internal/ports/cache/authorization_code_cache_repository.go:19
InterfaceAuthorizationCodeCacheRepository
AuthorizationCodeCacheRepository 预留给 authorization code 的缓存层优化。 当前主流程更多依赖数据库一次性消费,但这里保留了短时缓存接口以备扩展。
idp-server/internal/ports/cache/authorization_code_cache_repository.go:10
StructAuthorizationCodeCacheRepository
idp-server/internal/infrastructure/cache/redis/authorization_code_cache_repository.go:12
InterfaceAuthorizationCodeRepository
AuthorizationCodeRepository 抽象 authorization code 的创建与一次性消费。 ConsumeByCode 的语义通常隐含“读并标记已消费”,以防 code 被重复兑换。
idp-server/internal/ports/repository/authorization_code_repository.go:12
StructAuthorizationCodeRepository
idp-server/internal/infrastructure/persistence/authorization_code_repo.go:12
StructAuthorizationCommand
AuthorizationCommand 是 authorize endpoint 传给应用层的规范化授权请求。
idp-server/internal/application/authz/types.go:17
StructAuthorizationHandler
idp-server/internal/interfaces/http/handler/authorize_handler.go:12
StructAuthorizationResult
AuthorizationResult 描述 authorize 请求下一步应该发生什么: 去登录、去 consent,或者直接回调 client。
idp-server/internal/application/authz/types.go:32
StructAuthorizationService
AuthorizationService 负责 OAuth2 Authorization Code 流程中的“前半段”: 在用户已登录的前提下校验客户端、scope、PKCE 和 consent, 然后签发一个短生命周期的 authorization code 交给前端回跳。
idp-server/internal/application/authz/service.go:26
StructAuthorizeRequest
AuthorizeRequest 对应 `/oauth2/authorize` 的查询参数视图。
idp-server/internal/interfaces/http/dto/authorize.go:6
StructBasicValidateOptions
idp-server/internal/infrastructure/crypto/jwt.go:20
StructBeginMFAPasskeyInput
idp-server/internal/application/authn/types.go:99
StructBeginMFAPasskeyResult
idp-server/internal/application/authn/types.go:103
StructBeginSetupResult
idp-server/internal/application/passkey/types.go:15
StructBootstrapRolesResult
idp-server/internal/application/rbac/types.go:26
TypeAliasClaims
Claims 是 OIDC/JWT claims 的轻量 map 视图。
idp-server/pkg/oidc/claims.go:4
InterfaceClaimsAssembler
ClaimsAssembler 预留给 token claims 组装策略的抽象。 目前尚未细化具体方法,因此先作为将来扩展点保留。
idp-server/internal/ports/security/claims_assembler.go:5
TypeAliasClientAuthMethod
idp-server/pkg/oauth2/types.go:7
TypeAliasClientAuthMethodType
ClientAuthMethodType 对应 OAuth2 token endpoint 常见的 client authentication 方法。
idp-server/internal/ports/plugin/client_authenticator.go:10
StructClientAuthRegistry
idp-server/internal/plugins/registry/client_auth_registry.go:5
StructClientAuthenticateInput
idp-server/internal/ports/plugin/client_authenticator.go:18
StructClientAuthenticateResult
idp-server/internal/ports/plugin/client_authenticator.go:27
InterfaceClientAuthenticator
ClientAuthenticator 定义一种具体 client auth 方法的校验接口。
idp-server/internal/ports/plugin/client_authenticator.go:35
StructClientHandler
idp-server/internal/interfaces/http/handler/client_handler.go:13
StructClientPostLogoutRedirectURIHandler
idp-server/internal/interfaces/http/handler/client_post_logout_redirect_uri_handler.go:13
StructClientRedirectURIHandler
idp-server/internal/interfaces/http/handler/client_redirect_uri_handler.go:13
InterfaceClientRepository
ClientRepository 定义 OAuth/OIDC 客户端注册信息的持久化接口。
idp-server/internal/ports/repository/client_repository.go:10
StructClientRepository
idp-server/internal/infrastructure/persistence/client_repo.go:13
TypeAliasCodeChallengeMethod
idp-server/pkg/oauth2/types.go:8
StructConfirmResult
idp-server/internal/application/mfa/types.go:28
StructConsentDecisionRequest
ConsentDecisionRequest 是 consent 页提交“允许/拒绝”时的输入结构。
idp-server/internal/interfaces/http/dto/consent.go:4
StructConsentHandler
idp-server/internal/interfaces/http/handler/consent_handler.go:16
InterfaceConsentRepository
ConsentRepository 负责记录“某个用户是否已经对某客户端/某组 scope 授权过”。
idp-server/internal/ports/repository/consent_repository.go:9
StructConsentRepository
idp-server/internal/infrastructure/persistence/consent_repo.go:11
StructConsumer
idp-server/internal/infrastructure/auditstream/consumer.go:30
StructConsumerConfig
idp-server/internal/infrastructure/auditstream/consumer.go:17
StructCreateClientInput
idp-server/internal/application/client/types.go:23
StructCreateClientRequest
CreateClientRequest 对应后台创建 OAuth2/OIDC client 的输入载体。 这层只负责把 HTTP 表单/JSON 绑定成结构体,真正的默认值补齐、 grant/auth method 兼容性校验和 secret 存储策略都在应用层处理。
idp-server/internal/interfaces/http/dto/client.go:6
StructCreateClientResult
idp-server/internal/application/client/types.go:41
StructCreateInput
idp-server/internal/application/shorturl/types.go:31
StructCreateResult
idp-server/internal/application/shorturl/types.go:37
StructCreateShortURLRequest
idp-server/internal/interfaces/http/dto/short_url.go:5
InterfaceCreator
idp-server/internal/application/client/service.go:31
InterfaceCreator
idp-server/internal/application/shorturl/types.go:18
StructDecideInput
idp-server/internal/application/consent/types.go:25
StructDecideInput
idp-server/internal/application/device/types.go:51
StructDecideMFAPushInput
idp-server/internal/application/authn/types.go:114
StructDecideResult
idp-server/internal/application/consent/types.go:31
StructDecideResult
idp-server/internal/application/device/types.go:57
StructDeleteRoleInput
idp-server/internal/application/rbac/types.go:56
StructDeviceAuthorizeHandler
idp-server/internal/interfaces/http/handler/device_authorize_handler.go:17
StructDeviceAuthorizeRequest
DeviceAuthorizeRequest 是 device authorization endpoint 的输入结构。
idp-server/internal/interfaces/http/dto/device.go:4
StructDeviceCodeEntry
DeviceCodeEntry 表示一条设备授权流程的缓存记录。 它会在 pending -> approved/denied -> consumed 之间迁移状态。
idp-server/internal/ports/cache/device_code_repository.go:21
InterfaceDeviceCodeRepository
DeviceCodeRepository 定义 OAuth2 Device Authorization Grant 在缓存层需要的状态操作。
idp-server/internal/ports/cache/device_code_repository.go:9
StructDeviceCodeRepository
idp-server/internal/infrastructure/cache/redis/device_code_repository.go:12
StructDeviceVerificationHandler
idp-server/internal/interfaces/http/handler/device_verification_handler.go:15
StructDeviceVerifyRequest
DeviceVerifyRequest 是浏览器端 device verification 页提交的输入结构。
idp-server/internal/interfaces/http/dto/device.go:15
StructDiscoveryDocument
DiscoveryDocument 对应 `/.well-known/openid-configuration` 的响应结构。
idp-server/internal/application/oidc/types.go:27
StructEndSessionHandler
EndSessionHandler 实现 OIDC RP-Initiated Logout 的浏览器交互。 它负责展示确认页、校验 post_logout_redirect_uri,并在退出后把用户送回 RP。
idp-server/internal/interfaces/http/handler/end_session_handler.go:22
StructEndSessionRequest
EndSessionRequest 对应 OIDC RP-Initiated Logout 请求参数。
idp-server/internal/interfaces/http/dto/end_session.go:4
StructError
Error 对应 OAuth2 规范定义的错误响应结构。
idp-server/pkg/oauth2/errors.go:4
StructExchangeInput
idp-server/internal/ports/plugin/grant_handler.go:12
StructExchangeInput
idp-server/internal/application/token/types.go:24
StructExchangeResult
idp-server/internal/ports/plugin/grant_handler.go:29
StructExchangeResult
idp-server/internal/application/token/types.go:39
next →1–100 of 430, ranked by callers