Enable IdP JWKS refresh in VNC JWT validator

This commit is contained in:
Viktor Liu
2026-05-20 11:30:14 +02:00
parent c28e41e82b
commit 354fd004c7
2 changed files with 4 additions and 2 deletions

View File

@@ -502,7 +502,7 @@ func (m *MacInputInjector) postScrollWheel(src uintptr, buttonMask uint8) {
// emits one press+release per ~10 px, so a real gesture arrives as many
// small events; 20 px per event keeps the resulting macOS scroll fluid
// without overshooting on a single notch.
const scrollPixelsPerWheelTick int32 = 20
const scrollPixelsPerWheelTick int32 = 22
func (m *MacInputInjector) postMouse(src uintptr, eventType int32, x, y float64, button int32) {
if cgEventCreateMouseEvent == nil {

View File

@@ -691,11 +691,13 @@ func (s *Server) ensureJWTValidator() error {
return fmt.Errorf("no JWT config")
}
// Enable IdP key refresh so JWKS rotations don't latch the validator
// off until daemon restart.
s.jwtValidator = nbjwt.NewValidator(
s.jwtConfig.Issuer,
s.jwtConfig.Audiences,
s.jwtConfig.KeysLocation,
false,
true,
)
var opts []nbjwt.ClaimsExtractorOption