Enable IdP JWKS refresh in VNC JWT validator

This commit is contained in:
Viktor Liu
2026-05-20 12:15:00 +02:00
parent e56dca74ca
commit 2ce8ba1068
2 changed files with 4 additions and 2 deletions
+1 -1
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 {
+3 -1
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