handler

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: 5 Imported by: 0

Documentation

Overview

Package handler 는 인증 컨텍스트의 HTTP 어댑터다.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginHandler

type LoginHandler struct {
	// contains filtered or unexported fields
}

func NewLoginHandler

func NewLoginHandler(login *usecase.Login) *LoginHandler

func (*LoginHandler) Login

func (h *LoginHandler) Login(c echo.Context) error

Login 은 ID/PW 로 인증하고 세션 토큰을 돌려준다.

OIDC 와 나란히 서는 두 번째 경로다 — IdP 가 죽어도 들어갈 수단이 있어야 한다.

func (*LoginHandler) RegisterRoutes

func (h *LoginHandler) RegisterRoutes(g *echo.Group)

RegisterRoutes 는 로그인 라우트를 붙인다.

인증 미들웨어 앞에 있어야 한다 — 로그인하려면 먼저 통과해야 하기 때문이다.

Jump to

Keyboard shortcuts

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