Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benjaminsgz/sienne
/ types & classes
Types & classes
430 in github.com/benjaminsgz/sienne
⨍
Functions
1,536
◇
Types & classes
430
Struct
AccessToken
AccessToken 表示一条已签发 access token 的持久化记录。
idp-server/internal/domain/token/model.go:15
Struct
AccessTokenCacheEntry
AccessTokenCacheEntry 是 access token 在缓存中的元数据投影。
idp-server/internal/ports/cache/token_cache_repository.go:49
Interface
AccountUnlocker
idp-server/internal/application/register/service.go:29
Struct
AdminActionHandler
idp-server/internal/interfaces/http/handler/admin_action_handler.go:21
Struct
AdminConsoleHandler
idp-server/internal/interfaces/http/handler/admin_console_handler.go:16
Struct
AdminLogoutUserInput
idp-server/internal/application/session/types.go:24
Struct
AdminResetPasswordInput
AdminResetPasswordInput / Result 表示后台重置用户密码动作的输入输出。
idp-server/internal/application/register/types.go:43
Struct
AdminResetPasswordResult
idp-server/internal/application/register/types.go:48
Struct
AdminUnlockUserInput
AdminUnlockUserInput / Result 表示后台解锁用户账号动作的输入输出。
idp-server/internal/application/register/types.go:55
Struct
AdminUnlockUserResult
idp-server/internal/application/register/types.go:59
Struct
AdminUserLogoutHandler
idp-server/internal/interfaces/http/handler/admin_user_logout_handler.go:15
Struct
AdminUserLookupHandler
idp-server/internal/interfaces/http/handler/admin_user_lookup_handler.go:12
Struct
App
App 是启动阶段产出的顶层运行对象。 当前只暴露 Router,因为这个二进制的唯一职责是提供 HTTP 服务; 如果未来需要优雅停机、后台任务或健康探针对象,也可以继续在这里扩展。
idp-server/internal/bootstrap/wire.go:21
Struct
AssignRoleInput
idp-server/internal/application/rbac/types.go:34
Struct
AssignRoleRequest
AssignRoleRequest 描述把某个角色授予用户/主体时需要的输入。 privilege_mask 允许在继承角色默认权限之外做额外收窄或扩展, tenant_scope 则把授权限定在某个租户/命名空间内。
idp-server/internal/interfaces/http/dto/rbac.go:6
Struct
AssignRoleResult
idp-server/internal/application/rbac/types.go:41
Struct
AsyncRepository
idp-server/internal/infrastructure/auditstream/repository.go:39
Struct
AuditConsoleHandler
idp-server/internal/interfaces/http/handler/audit_console_handler.go:17
Interface
AuditEventRepository
AuditEventRepository 定义审计事件的写入与分页查询接口。
idp-server/internal/ports/repository/audit_event_repository.go:22
Struct
AuditEventRepository
idp-server/internal/infrastructure/persistence/audit_event_repo.go:15
Struct
AuthMiddleware
AuthMiddleware 负责把 Bearer Token 校验结果注入 Gin 上下文。 它位于 HTTP 边界层,因此只做协议相关判断,不直接碰业务仓储。
idp-server/internal/interfaces/http/middleware/auth.go:31
Struct
AuthenticateInput
idp-server/internal/ports/plugin/authn_method.go:18
Struct
AuthenticateInput
idp-server/internal/application/clientauth/service.go:18
Struct
AuthenticateInput
idp-server/internal/application/authn/types.go:48
Struct
AuthenticateResult
idp-server/internal/ports/plugin/authn_method.go:31
Struct
AuthenticateResult
idp-server/internal/application/clientauth/service.go:24
Struct
AuthenticateResult
idp-server/internal/application/authn/types.go:61
Interface
Authenticator
idp-server/internal/application/clientauth/service.go:14
Interface
Authenticator
idp-server/internal/application/authn/service.go:27
Struct
Authenticator
idp-server/internal/plugins/client_auth/client_secret_basic/authenticator.go:13
Struct
Authenticator
idp-server/internal/plugins/client_auth/none/authenticator.go:11
Struct
Authenticator
idp-server/internal/plugins/client_auth/client_secret_post/authenticator.go:12
Interface
AuthnMethod
AuthnMethod 定义了“一个可插拔登录方式”最小需要提供的能力。
idp-server/internal/ports/plugin/authn_method.go:47
TypeAlias
AuthnMethodType
AuthnMethodType 是登录方式插件的稳定标识。 应用层通过这个枚举选择认证策略,而不是直接依赖具体实现类型。
idp-server/internal/ports/plugin/authn_method.go:11
Struct
AuthnRegistry
AuthnRegistry 是认证方式插件的查找表。 应用层只关心“按 method type 找到实现”,不需要知道具体是密码、联邦 OIDC 还是别的方式。
idp-server/internal/plugins/registry/authn_registry.go:7
Struct
AuthorizationCodeCacheEntry
AuthorizationCodeCacheEntry 是授权码在缓存中的最小状态投影。
idp-server/internal/ports/cache/authorization_code_cache_repository.go:19
Interface
AuthorizationCodeCacheRepository
AuthorizationCodeCacheRepository 预留给 authorization code 的缓存层优化。 当前主流程更多依赖数据库一次性消费,但这里保留了短时缓存接口以备扩展。
idp-server/internal/ports/cache/authorization_code_cache_repository.go:10
Struct
AuthorizationCodeCacheRepository
idp-server/internal/infrastructure/cache/redis/authorization_code_cache_repository.go:12
Interface
AuthorizationCodeRepository
AuthorizationCodeRepository 抽象 authorization code 的创建与一次性消费。 ConsumeByCode 的语义通常隐含“读并标记已消费”,以防 code 被重复兑换。
idp-server/internal/ports/repository/authorization_code_repository.go:12
Struct
AuthorizationCodeRepository
idp-server/internal/infrastructure/persistence/authorization_code_repo.go:12
Struct
AuthorizationCommand
AuthorizationCommand 是 authorize endpoint 传给应用层的规范化授权请求。
idp-server/internal/application/authz/types.go:17
Struct
AuthorizationHandler
idp-server/internal/interfaces/http/handler/authorize_handler.go:12
Struct
AuthorizationResult
AuthorizationResult 描述 authorize 请求下一步应该发生什么: 去登录、去 consent,或者直接回调 client。
idp-server/internal/application/authz/types.go:32
Struct
AuthorizationService
AuthorizationService 负责 OAuth2 Authorization Code 流程中的“前半段”: 在用户已登录的前提下校验客户端、scope、PKCE 和 consent, 然后签发一个短生命周期的 authorization code 交给前端回跳。
idp-server/internal/application/authz/service.go:26
Struct
AuthorizeRequest
AuthorizeRequest 对应 `/oauth2/authorize` 的查询参数视图。
idp-server/internal/interfaces/http/dto/authorize.go:6
Struct
BasicValidateOptions
idp-server/internal/infrastructure/crypto/jwt.go:20
Struct
BeginMFAPasskeyInput
idp-server/internal/application/authn/types.go:99
Struct
BeginMFAPasskeyResult
idp-server/internal/application/authn/types.go:103
Struct
BeginSetupResult
idp-server/internal/application/passkey/types.go:15
Struct
BootstrapRolesResult
idp-server/internal/application/rbac/types.go:26
TypeAlias
Claims
Claims 是 OIDC/JWT claims 的轻量 map 视图。
idp-server/pkg/oidc/claims.go:4
Interface
ClaimsAssembler
ClaimsAssembler 预留给 token claims 组装策略的抽象。 目前尚未细化具体方法,因此先作为将来扩展点保留。
idp-server/internal/ports/security/claims_assembler.go:5
TypeAlias
ClientAuthMethod
idp-server/pkg/oauth2/types.go:7
TypeAlias
ClientAuthMethodType
ClientAuthMethodType 对应 OAuth2 token endpoint 常见的 client authentication 方法。
idp-server/internal/ports/plugin/client_authenticator.go:10
Struct
ClientAuthRegistry
idp-server/internal/plugins/registry/client_auth_registry.go:5
Struct
ClientAuthenticateInput
idp-server/internal/ports/plugin/client_authenticator.go:18
Struct
ClientAuthenticateResult
idp-server/internal/ports/plugin/client_authenticator.go:27
Interface
ClientAuthenticator
ClientAuthenticator 定义一种具体 client auth 方法的校验接口。
idp-server/internal/ports/plugin/client_authenticator.go:35
Struct
ClientHandler
idp-server/internal/interfaces/http/handler/client_handler.go:13
Struct
ClientPostLogoutRedirectURIHandler
idp-server/internal/interfaces/http/handler/client_post_logout_redirect_uri_handler.go:13
Struct
ClientRedirectURIHandler
idp-server/internal/interfaces/http/handler/client_redirect_uri_handler.go:13
Interface
ClientRepository
ClientRepository 定义 OAuth/OIDC 客户端注册信息的持久化接口。
idp-server/internal/ports/repository/client_repository.go:10
Struct
ClientRepository
idp-server/internal/infrastructure/persistence/client_repo.go:13
TypeAlias
CodeChallengeMethod
idp-server/pkg/oauth2/types.go:8
Struct
ConfirmResult
idp-server/internal/application/mfa/types.go:28
Struct
ConsentDecisionRequest
ConsentDecisionRequest 是 consent 页提交“允许/拒绝”时的输入结构。
idp-server/internal/interfaces/http/dto/consent.go:4
Struct
ConsentHandler
idp-server/internal/interfaces/http/handler/consent_handler.go:16
Interface
ConsentRepository
ConsentRepository 负责记录“某个用户是否已经对某客户端/某组 scope 授权过”。
idp-server/internal/ports/repository/consent_repository.go:9
Struct
ConsentRepository
idp-server/internal/infrastructure/persistence/consent_repo.go:11
Struct
Consumer
idp-server/internal/infrastructure/auditstream/consumer.go:30
Struct
ConsumerConfig
idp-server/internal/infrastructure/auditstream/consumer.go:17
Struct
CreateClientInput
idp-server/internal/application/client/types.go:23
Struct
CreateClientRequest
CreateClientRequest 对应后台创建 OAuth2/OIDC client 的输入载体。 这层只负责把 HTTP 表单/JSON 绑定成结构体,真正的默认值补齐、 grant/auth method 兼容性校验和 secret 存储策略都在应用层处理。
idp-server/internal/interfaces/http/dto/client.go:6
Struct
CreateClientResult
idp-server/internal/application/client/types.go:41
Struct
CreateInput
idp-server/internal/application/shorturl/types.go:31
Struct
CreateResult
idp-server/internal/application/shorturl/types.go:37
Struct
CreateShortURLRequest
idp-server/internal/interfaces/http/dto/short_url.go:5
Interface
Creator
idp-server/internal/application/client/service.go:31
Interface
Creator
idp-server/internal/application/shorturl/types.go:18
Struct
DecideInput
idp-server/internal/application/consent/types.go:25
Struct
DecideInput
idp-server/internal/application/device/types.go:51
Struct
DecideMFAPushInput
idp-server/internal/application/authn/types.go:114
Struct
DecideResult
idp-server/internal/application/consent/types.go:31
Struct
DecideResult
idp-server/internal/application/device/types.go:57
Struct
DeleteRoleInput
idp-server/internal/application/rbac/types.go:56
Struct
DeviceAuthorizeHandler
idp-server/internal/interfaces/http/handler/device_authorize_handler.go:17
Struct
DeviceAuthorizeRequest
DeviceAuthorizeRequest 是 device authorization endpoint 的输入结构。
idp-server/internal/interfaces/http/dto/device.go:4
Struct
DeviceCodeEntry
DeviceCodeEntry 表示一条设备授权流程的缓存记录。 它会在 pending -> approved/denied -> consumed 之间迁移状态。
idp-server/internal/ports/cache/device_code_repository.go:21
Interface
DeviceCodeRepository
DeviceCodeRepository 定义 OAuth2 Device Authorization Grant 在缓存层需要的状态操作。
idp-server/internal/ports/cache/device_code_repository.go:9
Struct
DeviceCodeRepository
idp-server/internal/infrastructure/cache/redis/device_code_repository.go:12
Struct
DeviceVerificationHandler
idp-server/internal/interfaces/http/handler/device_verification_handler.go:15
Struct
DeviceVerifyRequest
DeviceVerifyRequest 是浏览器端 device verification 页提交的输入结构。
idp-server/internal/interfaces/http/dto/device.go:15
Struct
DiscoveryDocument
DiscoveryDocument 对应 `/.well-known/openid-configuration` 的响应结构。
idp-server/internal/application/oidc/types.go:27
Struct
EndSessionHandler
EndSessionHandler 实现 OIDC RP-Initiated Logout 的浏览器交互。 它负责展示确认页、校验 post_logout_redirect_uri,并在退出后把用户送回 RP。
idp-server/internal/interfaces/http/handler/end_session_handler.go:22
Struct
EndSessionRequest
EndSessionRequest 对应 OIDC RP-Initiated Logout 请求参数。
idp-server/internal/interfaces/http/dto/end_session.go:4
Struct
Error
Error 对应 OAuth2 规范定义的错误响应结构。
idp-server/pkg/oauth2/errors.go:4
Struct
ExchangeInput
idp-server/internal/ports/plugin/grant_handler.go:12
Struct
ExchangeInput
idp-server/internal/application/token/types.go:24
Struct
ExchangeResult
idp-server/internal/ports/plugin/grant_handler.go:29
Struct
ExchangeResult
idp-server/internal/application/token/types.go:39
next →
1–100 of 430, ranked by callers