port

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialRepository

type CredentialRepository interface {
	// FindByEmail 은 이메일로 자격을 찾는다. 없으면 (nil, nil) 이다 —
	// "없음" 은 오류가 아니라 로그인 실패의 한 경우이고, 저장소 장애와 구분해야
	// 한다(장애를 자격 오류로 뭉개면 진짜 원인을 못 찾는다).
	FindByEmail(ctx context.Context, email string) (*domain.Credential, error)
}

CredentialRepository 는 ID/PW 로그인에 쓸 사용자 자격을 읽는다.

type OIDCProvider

type OIDCProvider interface {
	// ExtractRoles extracts application roles from JWT claims.
	// Keycloak: realm_access.roles (nested object)
	// Authentik: groups (top-level flat array)
	ExtractRoles(claims jwt.MapClaims) []string

	// Name returns the provider identifier ("keycloak" or "authentik").
	Name() string
}

OIDCProvider abstracts OIDC provider-specific behavior.

type SessionIssuer

type SessionIssuer interface {
	Issue(claims domain.SessionClaims) (string, error)
}

SessionIssuer 는 로그인 성공 시 세션 토큰을 발급한다.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL