인증수단 세션 확인 추가
This commit is contained in:
1 parent
bf469b1eb4
commit
d3facfbe77
10 files changed
+19
-326
No files matched your search
@@ -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