forked from baron/baron-sso
Merge commit 'd3facfbe776b0dd7a0a17d3fa3fed47b0d8641ab'
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user