1
0
forked from baron/baron-sso

인증수단 세션 확인 추가

This commit is contained in:
Lectom C Han
2026-02-04 14:33:47 +09:00
parent bf469b1eb4
commit d3facfbe77
10 changed files with 19 additions and 326 deletions

View File

@@ -3390,7 +3390,9 @@ func (h *AuthHandler) AcceptOidcLoginRequest(c *fiber.Ctx) error {
}
if approvedSessionID == "" {
if token := h.getBearerToken(c); token != "" {
approvedSessionID = extractSessionIDFromJWT(token)
if resolved, err := h.getKratosSessionID(token); err == nil {
approvedSessionID = resolved
}
}
}
if approvedSessionID == "" {
@@ -3401,7 +3403,6 @@ func (h *AuthHandler) AcceptOidcLoginRequest(c *fiber.Ctx) error {
}
}
if approvedSessionID != "" {
c.Locals("session_id", approvedSessionID)
c.Locals("approved_session_id", approvedSessionID)
}
if h.KratosAdmin != nil {