mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
- When OIDC state handle is not found, callback now returns an Error instead of (null, undefined, undefined), which caused passport to fail silently with no feedback to the user or logs. - When OIDC state has expired, callback now returns a descriptive Error so the user gets a meaningful message instead of a silent redirect failure. - Replaced Math.random()-based handle generation with randomBytes(32) from node:crypto. The previous implementation was not cryptographically secure despite the comment claiming otherwise, making state handles potentially predictable. Fixes #7716pull/7797/head
1 changed files with 17 additions and 13 deletions
Loading…
Reference in new issue