forked from baron/baron-sso
인증수단 세션 확인 추가
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user