1
0
forked from baron/baron-sso

Merge commit 'd3facfbe776b0dd7a0a17d3fa3fed47b0d8641ab'

This commit is contained in:
2026-02-04 15:02:25 +09:00
10 changed files with 19 additions and 326 deletions

View File

@@ -3392,7 +3392,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 == "" {
@@ -3403,7 +3405,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 {